Re: [patch,avr] Add -mno-call-main to tweak running main()

2025-02-12 Thread Georg-Johann Lay
...plus, I updated the documentation: -mno-call-main asserts that main() does not return. Johann index 0aef2abf05b..af41d7b9ad3 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -24457,6 +24457,24 @@ Do not save registers in @code{main}. The effect is the same like attaching attr

[patch,avr] Add -mno-call-main to tweak running main()

2025-02-09 Thread Georg-Johann Lay
On devices with very limited resources, it may be desirable to run main in a more efficient way than provided by the startup code XCALL main XJMP exit from section .init9. In AVR-LibC v2.3, that code has been moved to libmcu.a, hence symbol __call_main can be satisfied so that the respec