Re: [avr-libc-dev] Request: gcrt1.S with empty section .init9

2017-01-07 Thread Marko Mäkelä
Hallo Johann, Actually I write C and C++ code bigger systems for living. Ya, but on such systems you won't dive into generated assembly and propose library changes when you come across a pair of instructions you don't need in your specific context :-P True. Also, in big software systems co

Re: [avr-libc-dev] Request: gcrt1.S with empty section .init9

2017-01-07 Thread Georg-Johann Lay
Marko Mäkelä schrieb: Hallo Johann, When you need optimizations at a lever where 2 instructions matter, then it's very likely you need a project specific start-up code and linker description anyway. For example, you might truncate the vector table after the last vector used by the applicatio

Re: [avr-libc-dev] Request: gcrt1.S with empty section .init9

2017-01-07 Thread Marko Mäkelä
Hallo Johann, When you need optimizations at a lever where 2 instructions matter, then it's very likely you need a project specific start-up code and linker description anyway. For example, you might truncate the vector table after the last vector used by the application. Good idea, thanks!

Re: [avr-libc-dev] Request: gcrt1.S with empty section .init9

2017-01-06 Thread Georg-Johann Lay
Marko Mäkelä schrieb: I am trying to move from assembler to C programming on the AVR while avoiding unnecessary overhead. I see that crt1/gcrt1.S contains the following code: .section .init9,"ax",@progbits #ifdef __AVR_ASM_ONLY__ XJMPmain #else/* !__AVR_ASM_ONLY__ */ XCALL