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] |
> Hello! > > I'm using ANSI-C and m68k-coff crosscompiler placed in a cygwin env. on a PC > with WinNT. > > I'm trying to place variables in RAM on a M68040 using the following commands > placed in an include-file where all global variables are placed. > > For single variables int, float > #define var (*( int * )( hex adress )) > > For arrays > #define array (( int * )( hex adress )) > > For arrays there is another approach > typedef boolean BOOLARRAY[8 - 1 + 1]; > #define array (*( BOOLARRAY * )( hex adress )) > > Does anyone know which approach is preferred for arrays and how to do > with two-dimensional arrays. > > Thank You in advance. > > Mikael Johansson > > Volvo Aero Corporation > Military Engines Trollhättan > Dept. 7164MJ > SE-461 81 Trollhättan, Sweden > phone +46 520 940 61 > e-mail: mikael.mj.johansson@volvo.com > > ------ 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] |