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
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)
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
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
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
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
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
Hi,
is there a way to tell gdbproxy to listen only on the internal
interface, not on all?
Andreas
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
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(
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
11 matches
Mail list logo