This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Linker script and bitfields


	Hello all,

	I am trying to compile a bootflash for my (future) ARM7TDMI testboard.
I already had a look at the LD manual, but I didn't get further than

SECTIONS
{
   . = 0x00000000;
}

After starting at address 0x00000000, a few commands are executed which
involve setting a bit. This bit relocates internal RAM to address
0x00000000, and the bootflash code to 0x00400000 (e.g.). I wonder how I
can fit that in 1 64k, 16bit wide flash???


2) for the same testboard: is it possible to make an ARRAY of
bitfields?? Something like:

typedef struct {
   int test1:2;
   int bitarray[5]:1;    // an array of 5 bitfields
}

--> I know the previous example doesn't work, but is there an other way
to do it??

Kind regards,

Jan
begin:vcard 
n:Van Belle;Jan
tel;work:+32 3 4503297
x-mozilla-html:FALSE
org:Alcatel Telecom;Broadband Networking Division
version:2.1
email;internet:Jan.Van_Belle@alcatel.be
adr;quoted-printable:;;de Villermontstraat 38B=0D=0AB2550 Kontich;;;;Belgium
x-mozilla-cpt:;-6704
fn:Jan Van Belle
end:vcard

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]