![]() In this case add -nostartfiles to the avr-gcc link invocation and you won't get a crtXXXX.o file linked. But it could be that you want an "empty machine" and you don't want the baggage of a complete vector table if space is tight. Most of those things "thrown in for free" are things you might be doing anyway if you wrote everything from scratch so you might just continue to let the compiler link with the C Run Time (CRT) by default. bss then finally "CALL main" so you provide "main:" as the entry point in you asm. ![]() ![]() S file in Studio and pass it to avr-gcc to be assembled and linked then avr-gcc is going to treat it as if it's part of a C solution and will provide you with a reset jump, a fully populated (weak linked) vector table, code to clear R1, clear SREG, set the SP, copy the. The Atmel Studio 4/5 solutions seem weak on this point. However, I am using a guideline to have source for all code, especially the start-up code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |