This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
how can I alloc 64k memory?
- From: li hui <lhbyron at yahoo dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Sun, 24 Mar 2002 17:38:44 -0800 (PST)
- Subject: [ECOS] how can I alloc 64k memory?
I am working on ecos with x86 target.I try to alloc a
64k memory. it is very strange that it is correct when
i compile with -g and download it to target machine by
serial.But when i chose startup from floppy,it is
failed alloc such big memory.
I tried two ways to alloc memory as follow:
1.unsigned char img[65536];
2.img=(unsigned char*)malloc(65536*sizrof(char))
use first way,it seems just can alloc memory as large
as 30*256.
please tell me why!
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss