hi
it mite be possible that the capacity of UC's SRAM is low to store a hole program in it so when u add word "CODE" in front of it the part of  code gets store in Flash memory of ur UC...

On 7/18/07, sdcc@dummgebabbel.de <sdcc@dummgebabbel.de> wrote:
Hello,

I have a problem where i couldnt find a clear answer in the manual/list.
I want to initialize an 4x4 array like:

char state_table[4][4]={{0,1,-1,0},{-1,0,0,1},{1,0,0,-1},{0,-1,1,0}};
but this only works if i add the code keyword infront of it. If code is
omitted the array does not work.
Is this the intended behavior? or am i doing something wrong?

sdcc -v:  SDCC : pic16 2.6.4 #4631 (Feb 13 2007) (UNIX)
device: pic18f2550

thx allot in advance

jan








-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user



--
Regards-----
Abhishek..
(M)+91 9820475899
(O)+91 22 25720700
www.triindia.co.in

http://abhishekworld.wordpress.com/
http://www.flickr.com/photos/abhishekworld/

/********************************************************************************/
  "Imagination is more important than  knowledge..."    Albert Einstein
                                                                                                    
/********************************************************************************/