Where has -mshort-calls compiler option gone? I found the relevant changes - it's in the assembler, not the compiler:
https://sourceware.org/ml/binuti...
and in the "compiler driver" to pass -mrelax both to as and ld:...
Tuesday, 16 September 2014 - 13:10
Where has -mshort-calls compiler option gone? Ah, I see.
I don't doubt what you say, but what is the reason? I mean, in what way are the debug symbols more linker/relax-friendly when using -mrelax, and how can they be...
Tuesday, 16 September 2014 - 07:24
code//////////////////code The problem is not with the overall width - I can simply reduce the width my browser window (I learned to do this quickly after I was forced to use a "modern" wide-angle monitor...
Where has -mshort-calls compiler option gone? In the PMd files, I run the makefile (after changing the hardcoded paths - whoever wrote the makefile generator was an idiot), removing -mshort-calls and adding -relax to the...
Thursday, 11 September 2014 - 11:06
Where has -mshort-calls compiler option gone? > If I build it with gcc 4.6.2 without -mshort-calls it results in 2106 bytes.
Hummm. Relaxation should do the same thing - replace JMP/CALL by RJMP/RCALL wherever...
Thursday, 11 September 2014 - 08:08
Where has -mshort-calls compiler option gone? Can you please try to compile the code with 4.6.2 but *without* -mshort-calls? Will that produce a different code?
I guess not and the difference is elsewhere.
If...
AVR GCC Jump Table Bug AVR-Libc user manual wrote:NOTE: The tablejump instructions use the LPM assembler instruction for access to jump tables. Always use -fno-jump-tables switch, if compiling a...
I found the relevant changes - it's in the assembler, not the compiler: https://sourceware.org/ml/binuti... and in the "compiler driver" to pass -mrelax both to as and ld:...
Ah, I see. I don't doubt what you say, but what is the reason? I mean, in what way are the debug symbols more linker/relax-friendly when using -mrelax, and how can they be...
The problem is not with the overall width - I can simply reduce the width my browser window (I learned to do this quickly after I was forced to use a "modern" wide-angle monitor...
> This is because it has to be passed to both compiler and linker. Why would it be needed for the compiler? JW
And this trick appears not working in the new forum. JW
One more thing - remove all object files before recompiling (make clean, but do it manually to be sure). Any change? JW
Also, how did you specify relaxation? If -mrelax, what if you try -Wl,-relax? JW
In the PMd files, I run the makefile (after changing the hardcoded paths - whoever wrote the makefile generator was an idiot), removing -mshort-calls and adding -relax to the...
> If I build it with gcc 4.6.2 without -mshort-calls it results in 2106 bytes. Hummm. Relaxation should do the same thing - replace JMP/CALL by RJMP/RCALL wherever...
Can you please try to compile the code with 4.6.2 but *without* -mshort-calls? Will that produce a different code? I guess not and the difference is elsewhere. If...
Use asm, inline or normal. JW
AVR-Libc user manual wrote:NOTE: The tablejump instructions use the LPM assembler instruction for access to jump tables. Always use -fno-jump-tables switch, if compiling a...
Pages