[Sdcc-user] optimisation on 8051

2009-02-22 Thread Rod Boyce
snot seem to have any effect. So my question is am I missing a command line switch when I compile the file? I use the following to compile this file: sdcc -c-mmcs51 --model-small test51.c Regards, Rod Boyce -- Open So

[Sdcc-user] Another optimization missing for the 8051 compiler

2010-12-18 Thread Rod Boyce
the 1st if statement is clearer and that is what the companies coding standard mandates. I currently don't need the missing 4-bytes of code space and will only note this in the delivery notes. Regards, Rod Boyce --

[Sdcc-user] Another optimization missing for the 8051 compiler

2010-12-19 Thread Rod Boyce
the 1st if statement is clearer and that is what the companies coding standard mandates. I currently don't need the missing 4-bytes of code space and will only note this in the delivery notes. Regards, Rod Boyce --

Re: [Sdcc-user] Question about ADuC841 programming

2011-02-12 Thread Rod Boyce
I have seen a similar problem with LPC900 chips, try converting the from from unix file format to dos file format. On my ubuntu machine I use todos and on my fedora machine I use unix2dos. The command looks something like: $ todos output.ihx Regards, Rod Boyce PS sorry if I am teaching granny

Re: [Sdcc-user] Merits of SDCC over proprietary?

2011-03-02 Thread Rod Boyce
reason to use the Keil compiler. Hope this helps. Regards, Rod Boyce On 01/03/11 13:49, Joel Holdsworth wrote: Hi All, I'm trying to guage the relative merrits of the SDCC for a new project involving the Texas Instruments CC1110. We have a choice between building with the SDCC or tools

Re: [Sdcc-user] makefile example

2006-11-01 Thread Rod Boyce
JOse, This has be discussed in this mailing list a year or so ago I had even posted a makefile back then if you search the archives you will find a makefile example that will work with SDCC under window or linux Rod Boyce Jose Barbosa wrote: > I am trying to setup a SDCC project with C

Re: [Sdcc-user] [OT] - ADC Ideas

2007-03-08 Thread Rod Boyce
Markos, It is very simple I have done this many times in my days job, use a resistive divider and work out the error by calibrating the input and fix any error in software. One thing you have to be careful of is that you monitor the temperature as well as many resistors vary their resistance

Re: [Sdcc-user] [OT] - ADC Ideas

2007-03-09 Thread Rod Boyce
the link hereafter, it would be safer to put a >> zener diode across the lower resistor of the divider, to protect the >> controller. >> >> Le Jeudi 8 Mars 2007 21:51, Rod Boyce a écrit : >> >> >>> Markos, >>> >>> It is very simp

Re: [Sdcc-user] passing pointer of struct to function

2007-04-18 Thread Rod Boyce
ith. Regards, Rod Boyce Dominik Cabrerizo wrote: > Hi Dia! > > I did the same thing today. Took me some time to figure it out... > My code is like this: > > void func(struct myStruct* ArrayOfStruct) { > x = ArrayOfStruct[1].Element //just es example to access Element in