[Sdcc-user] invoking from external program

2008-06-03 Thread Get Started
Hi, I'd like to call the sdcc compiler from an other program, in Windows. Is there any way to get back the compile status, compile error? Getting the the status of compiling (0 or 1 for example, the compiling successfull or not), and getting the error line no, in case of syntax error. Thanks

[Sdcc-user] simple program

2008-06-04 Thread Get Started
Is this program correct? This should work? (blinking led) #include "pic16f84.h" void main() { TRISB = 0; for (;;) { PORTB = 0; PORTB = 1; } } - Check out the new SourceForge.net Marketplace.

[Sdcc-user] startup code

2008-06-04 Thread Get Started
The startup code is the pic asm version of this routine? sdcc/device/lib/libsdcc/idata.c void _sdcc_gsinit_startup(void) For PIC14 (for example p16f84) Thanks - Check out the new SourceForge.net Marketplace. It's the best pl

[Sdcc-user] start program

2008-06-04 Thread Get Started
The real program will start at 0xCD ? ; STARTUP code 00 nop nop pagesel __sdcc_gsinit_startup 01 2805 goto

[Sdcc-user] simulating

2008-06-05 Thread Get Started
I tried to simulate (PICSim IDE, Oshonsoft) the hex file, but I got "Hardware stack overflow" #include "pic16f84.h" void main() { TRISB = 0; for (;;) { PORTB = 0; PORTB = 1; } } " \sdcc\bin\sdcc.exe" --vc -mpic14 -p16f84 blinkled.c Thanks

Re: [Sdcc-user] simulating

2008-06-06 Thread Get Started
wrote: > > > Get Started wrote: > > I tried to simulate (PICSim IDE, Oshonsoft) the hex file, but I got > > "Hardware stack overflow" > > There was a similar report recently stating the same problem. Can you > track it down more precisely? Can you single-step

Re: [Sdcc-user] simulating

2008-06-09 Thread Get Started
On 6/8/08, Raphael Neider <[EMAIL PROTECTED]> wrote: > >> Instructions counter: 94 >> Clock cycles counter: 484 >> Last instruction: call 0xAC > > OK, I reproduced the error using oshonsoft's PIC simulator. I solved it > by selecting the correct PIC (16f84) rather than using the simulator's > defau

Re: [Sdcc-user] simulating

2008-06-09 Thread Get Started
I tested it with p16f84 in PIC Simulator IDE previously... On 6/9/08, Raphael Neider <[EMAIL PROTECTED]> wrote: > >>> OK, I reproduced the error using oshonsoft's PIC simulator. I solved it >>> by selecting the correct PIC (16f84) rather than using the simulator's >>> default (16f877), which mes