Re: [Sdcc-user] array initalisation

2007-07-18 Thread sdcc
Ernst Bachmann wrote: > On Mittwoch, 18. Juli 2007, [EMAIL PROTECTED] wrote: > >> 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 i

Re: [Sdcc-user] array initalisation

2007-07-18 Thread Ernst Bachmann
On Mittwoch, 18. Juli 2007, [EMAIL PROTECTED] wrote: > 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 infron

Re: [Sdcc-user] array initalisation

2007-07-18 Thread Abhishek / TRI Technosolutions Pvt. Ltd.
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, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello, I have a problem where i couldnt find a c

[Sdcc-user] array initalisation

2007-07-18 Thread sdcc
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