Hi, I am new to MCUs, and I want to ask two questions about basically mixing C and ASM code.
First, I know that calling asm functin from C is simple, but you need your asm compiler to create object file instead of hex. My problem is, that I like somehow avr studio IDE and preprocessor better than avr-gcc. Is there any way to generate avr-gcc compatible object code from it?
And second, I need to call function written in C from ASM code. I used google, but most topics relate only how to call asm function from C code. So, I presume, if I in the asm code just include rjmp to my function name (function accepts no variables) and generate object file, will the linker know what I am trying to do? Thanks.