There are 7 messages in this thread.
You are currently looking at messages 0 to 7.
hi iam new to this embedded field iam had a problem in declaring an array in embedded C..iam using SDCC compiler for compilation..if u know..please pass that information. thank you
In message <1...@a2g2000prm.googlegroups.com>, satish <s...@gmail.com> writes >hi iam new to this embedded field iam had a problem in declaring an >array in embedded C. No such thing as "embedded C" just C. You declare an array as you would in C >.iam using SDCC compiler for compilation. That is your main problem. What is the target MCU. -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Op Thu, 21 Aug 2008 09:19:22 +0200 schreef satish <s...@gmail.com>: > hi iam new to this embedded field iam had a problem in declaring an > array in embedded C.. It's no different than in regular C. > iam using SDCC compiler for compilation..if u > know..please pass that information. I know, but it depends on the circumstance. http://c-faq.com/aryptr/index.html -- Gemaakt met Opera's revolutionaire e-mailprogramma: http://www.opera.com/mail/
One thing that is a bit different in embedded is that you can (usually) infleunce where your data goes. If it is constant data then placing it in "code" may help (and the 8051 is quite good at indexing small arrays in the code space). Rgds, Bill "Boudewijn Dijkstra" <b...@indes.com> wrote in message news:o...@azrael.lan... > Op Thu, 21 Aug 2008 09:19:22 +0200 schreef satish > <s...@gmail.com>: >> hi iam new to this embedded field iam had a problem in declaring an >> array in embedded C.. > > It's no different than in regular C. > >> iam using SDCC compiler for compilation..if u >> know..please pass that information. > > I know, but it depends on the circumstance. > > http://c-faq.com/aryptr/index.html > > > -- > Gemaakt met Opera's revolutionaire e-mailprogramma: > http://www.opera.com/mail/ One thing that is a bit different in embedded is that you can (usually) infleunce where your data goes. If it is constant data then placing it in "code" may help (and the 8051 is quite good at indexing small arrays in the code space). Rgds, Bill
satish wrote: > hi iam new to this embedded field iam had a problem in declaring an > array in embedded C..iam using SDCC compiler for compilation..if u > know..please pass that information. > > thank you char anArray[42]; // this array is in the RAM The specific CPU and memory model determines where.
On Thu, 21 Aug 2008 12:06:15 +0100, "Bill Davy" <B...@XchelSys.co.uk> wrote: Sandwich posting? >One thing that is a bit different in embedded is that you can (usually) >infleunce where your data goes. If it is constant data then placing it in >"code" may help (and the 8051 is quite good at indexing small arrays in the >code space). > >Rgds, > Bill > >"Boudewijn Dijkstra" <b...@indes.com> wrote in message >news:o...@azrael.lan... >> Op Thu, 21 Aug 2008 09:19:22 +0200 schreef satish >> <s...@gmail.com>: >>> hi iam new to this embedded field iam had a problem in declaring an >>> array in embedded C.. >> >> It's no different than in regular C. >> >>> iam using SDCC compiler for compilation..if u >>> know..please pass that information. >> >> I know, but it depends on the circumstance. >> >> http://c-faq.com/aryptr/index.html >> >> >> -- >> Gemaakt met Opera's revolutionaire e-mailprogramma: >> http://www.opera.com/mail/ > >One thing that is a bit different in embedded is that you can (usually) >infleunce where your data goes. If it is constant data then placing it in >"code" may help (and the 8051 is quite good at indexing small arrays in the >code space). > >Rgds, > Bill > Best regards, Spehro Pefhany -- "it's the network..." "The Journey is the reward" s...@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com
I just like to annoy everyone equally. Democratic. "Spehro Pefhany" <s...@interlogDOTyou.knowwhat> wrote in message news:0...@4ax.com... > On Thu, 21 Aug 2008 12:06:15 +0100, "Bill Davy" <B...@XchelSys.co.uk> > wrote: > > Sandwich posting? > > >>One thing that is a bit different in embedded is that you can (usually) >>infleunce where your data goes. If it is constant data then placing it in >>"code" may help (and the 8051 is quite good at indexing small arrays in >>the >>code space). >> >>Rgds, >> Bill >> >>"Boudewijn Dijkstra" <b...@indes.com> wrote in message >>news:o...@azrael.lan... >>> Op Thu, 21 Aug 2008 09:19:22 +0200 schreef satish >>> <s...@gmail.com>: >>>> hi iam new to this embedded field iam had a problem in declaring an >>>> array in embedded C.. >>> >>> It's no different than in regular C. >>> >>>> iam using SDCC compiler for compilation..if u >>>> know..please pass that information. >>> >>> I know, but it depends on the circumstance. >>> >>> http://c-faq.com/aryptr/index.html >>> >>> >>> -- >>> Gemaakt met Opera's revolutionaire e-mailprogramma: >>> http://www.opera.com/mail/ >> >>One thing that is a bit different in embedded is that you can (usually) >>infleunce where your data goes. If it is constant data then placing it in >>"code" may help (and the 8051 is quite good at indexing small arrays in >>the >>code space). >> >>Rgds, >> Bill >> > Best regards, > Spehro Pefhany > -- > "it's the network..." "The Journey is the reward" > s...@interlog.com Info for manufacturers: > http://www.trexon.com > Embedded software/hardware/analog Info for designers: > http://www.speff.com I just like to annoy everyone equally. Democratic.