From: Gordon H. <go...@dr...> - 2009-10-28 19:55:57
|
About to embark on a largish project on a PIC 18F system - not sure how much code it will compile into, but it's currently about 48KB on an AVR platform under avr-gcc, so I'm not sure how the code efficiency is on the PIC side - the target is a 96KB PIC device, so hopefully plenty of room to spare!) However I read varying conflicting reports about the PIC code generator - it looks OK and I've had a look at the assembler output, not that I'm an expert, but it's generating code... Anyone done anything big with it? Anyway, I'm going to give SDCC a go before I go out & buy a commercial IDE. Just curious about others experiences.. Cheers, Gordon |
From: lementec f. <te...@gm...> - 2009-10-28 21:28:04
|
hi, depending on the project size... I have never use another compiler to program pic, but my projects are somewhat small, say ~= 1000 lines. I ported freertos and it worked. On Wed, Oct 28, 2009 at 7:55 PM, Gordon Henderson <go...@dr...> wrote: > > About to embark on a largish project on a PIC 18F system - not sure how > much code it will compile into, but it's currently about 48KB on an AVR > platform under avr-gcc, so I'm not sure how the code efficiency is on the > PIC side - the target is a 96KB PIC device, so hopefully plenty of room to > spare!) > > However I read varying conflicting reports about the PIC code generator - > it looks OK and I've had a look at the assembler output, not that I'm an > expert, but it's generating code... Anyone done anything big with it? > > Anyway, I'm going to give SDCC a go before I go out & buy a commercial > IDE. Just curious about others experiences.. > > Cheers, > > Gordon > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > |
From: Gordon H. <gor...@dr...> - 2009-10-28 22:19:27
|
On Wed, 28 Oct 2009, lementec fabien wrote: > hi, > > depending on the project size... I have never > use another compiler to program pic, but my > projects are somewhat small, say ~= 1000 lines. > I ported freertos and it worked. Thanks for that. Encouraging. I have my own little RTOS which I'm using on the AVR platform, shouldn't be hard for me to port it to the PIC. Cheers, Gordon > > On Wed, Oct 28, 2009 at 7:55 PM, Gordon Henderson <go...@dr...> wrote: >> >> About to embark on a largish project on a PIC 18F system - not sure how >> much code it will compile into, but it's currently about 48KB on an AVR >> platform under avr-gcc, so I'm not sure how the code efficiency is on the >> PIC side - the target is a 96KB PIC device, so hopefully plenty of room to >> spare!) >> >> However I read varying conflicting reports about the PIC code generator - >> it looks OK and I've had a look at the assembler output, not that I'm an >> expert, but it's generating code... Anyone done anything big with it? >> >> Anyway, I'm going to give SDCC a go before I go out & buy a commercial >> IDE. Just curious about others experiences.. >> >> Cheers, >> >> Gordon >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Sdcc-user mailing list >> Sdc...@li... >> https://lists.sourceforge.net/lists/listinfo/sdcc-user >> > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > |
From: Kustaa N. <Kus...@pl...> - 2009-10-29 07:19:14
|
> About to embark on a largish project on a PIC 18F system - not sure how > much code it will compile into, but it's currently about 48KB on an AVR > platform under avr-gcc, so I'm not sure how the code efficiency is on the > PIC side - the target is a 96KB PIC device, so hopefully plenty of room to > spare!) > > However I read varying conflicting reports about the PIC code generator - > it looks OK and I've had a look at the assembler output, not that I'm an > expert, but it's generating code... Anyone done anything big with it? > I've done a project that has about 2500 lines of code that almost fills the Flash of 18F4550 (32kB). Note that lines/code is pretty meaningless measure anyway. I've got no experience with other PIC compilers but I would think that code generation issue, if any, size wise is more to do with the PIC CPU architecture than the compiler. OTOH I believe the newer PICs (18F included) have some more C friendly instructions that the SDCC does not yet take advantage of IIRC, I maybe wrong. I would encourage you to try, there is a helpful and responsive community here. br Kusti |
From: <sd...@du...> - 2009-10-30 06:36:09
|
Hallo On 28.10.2009 20:55, Gordon Henderson wrote: > > About to embark on a largish project on a PIC 18F system - not sure how > much code it will compile into, but it's currently about 48KB on an AVR > platform under avr-gcc, so I'm not sure how the code efficiency is on the > PIC side - the target is a 96KB PIC device, so hopefully plenty of room to > spare!) My biggest (comparing codesize) project with sdcc was a motor controller which was connected to the pc via usb (cdc class device). Compiled hex file is 49k. Didn't had much trouble with it. Regards, Jan |