Re: [Mspgcc-users] static inline does not work with -O0

2003-12-14 Thread Steve Underwood
Hi Matthias, This is how GCC works. Inlining is an optimisation. -O0 does *no* optimisation. Makes sense, doesn't it? Regards, Steve Matthias Weingart wrote: Hi listmembers, sorry to bother you again :-). With -O0 (no optimisation) static inline does not work? Is this true? example: #d

[Mspgcc-users] static inline does not work with -O0

2003-12-14 Thread Matthias Weingart
Hi listmembers, sorry to bother you again :-). With -O0 (no optimisation) static inline does not work? Is this true? example: #define OS_TIMERINT() ({ (* do something *) }) static inline void osTimerInt(void) { //do something } // Timer A0 interrupt service routine interrupt(TIMERA0_VECTOR)

Re: [Mspgcc-users] where is the main stack

2003-12-14 Thread Chris Liechti
Matthias Weingart wrote: What is the difference between data and bss segments. Which of my global variables will reside where? all variables in .bss are initialized with zero, those in .data are initialized from values stored in .text (see msp430-libc/src/stdlib/_init_section__.c if you want

Re: [Mspgcc-users] multi-tasking with the MSP430

2003-12-14 Thread Chris Liechti
Matthias Weingart wrote: Some remarks to examples/tasker swap() should be implemented as naked it does not work with gcc optimising switched off (R4 is push onto stack and confuse swap() or at least the debugger ;-) thats coorect, it must be a "nacked" function for correct function Is the c

[Mspgcc-users] --gc-sections dont work

2003-12-14 Thread Matthias Weingart
When I use ,--gc-sections for the linker, msp430-objdump fails: msp430-gcc main.o task.o -mmcu=msp430x148 -Wl,-Map=test.elf.map,--cref,--gc-sections -o test.elf msp430-objdump -g test.elf > test.lst test.elf: .stab: stab entry 0 is corrupt, strx = 0x464c457f, type = 1 test.elf: .stab: stab entr

[Mspgcc-users] Tools for performance analysis

2003-12-14 Thread Peter Mueller
Hi all, after some development we just finished an msp application. It is not too complex (several tasks, irq handler, ipc via events ...). Nevertheless we had to do 2 redesigns to finally achieve the required performance. I wonder if there are any good modeling tools available to get a good

Re: [Mspgcc-users] gdbproxy

2003-12-14 Thread Steve Underwood
Hi Andreas, Andreas Schwarz wrote: Hi, is there a way to tell gdbproxy to listen only on the internal interface, not on all? Andreas Currently, no. However, since this is a very reasonable request I will add this feature. Regards, Steve

[Mspgcc-users] gdbproxy

2003-12-14 Thread Andreas Schwarz
Hi, is there a way to tell gdbproxy to listen only on the internal interface, not on all? Andreas

[Mspgcc-users] eliminate unused function

2003-12-14 Thread Matthias Weingart
How can I tell mcpgcc not to link unused functions into the target? example: func1() { } func2() { } main() { func1(); } func2 should not appear in the elf-file, because it is never called. I found some gcc options that would do that -fvtable-gc Emit special relocations for vtables and virt

Re: [Mspgcc-users] multi-tasking with the MSP430

2003-12-14 Thread Matthias Weingart
Some remarks to examples/tasker swap() should be implemented as naked it does not work with gcc optimising switched off (R4 is push onto stack and confuse swap() or at least the debugger ;-) Is the content of static TASK tasks[MAX_TASKS]; filled with zeros at startup? I think no. initTasking(

[Mspgcc-users] where is the main stack

2003-12-14 Thread Matthias Weingart
Is there a way to get the position of the current main stack from within C? in sys/unitd.h I see int __stack; This is the top of the stack. But where is the stack space? What is the lower limit of the stack? int __bss_end; ?? I want to fill it with a pattern, to see how much is used. What