Post Created date
building gcc=8.3, avr-libc on Linux w/ atpack hooks
1. You can simplify installing GCC prerequisites by running ./contrib/download_prerequisites from GCC top source (as explained in "Installing GCC"). This will download and link...
Tuesday, 21 May 2019 - 08:39
Problem comping simple asm function by g++
... bit more complicated. Use constraint "i" with &NVM_CMD (it's the address that's known, not the content of that memory location). That's it, because the content of memory...
Monday, 20 May 2019 - 09:55
Problem comping simple asm function by g++
Ok, the problem is the constraint "m" which allows any memory reference including indirect via X. Check the asm before the inline asm and you will find that the compiler loads 458...
Monday, 20 May 2019 - 09:19
Problem comping simple asm function by g++
...
Sunday, 19 May 2019 - 19:41
Problem comping simple asm function by g++
What's the purpose of A in op 3? . To check the code generated by the compiler proper use -save-temps and inspect the .s file.
Sunday, 19 May 2019 - 19:39
longjmp() at the end of an ISR ? Or Goto+flag ?
Restoring R1 is not needed because it can only be non-zero during a multi-instruction pattern. You cannot call longjmp (or setjmp for that matter) from within a multi-instruction...
Friday, 17 May 2019 - 10:18
gcc, libc for atmega4809 ?
Use GCC v8+, Binutils v2.29+ and avr-libc from SVN trunk.
Wednesday, 15 May 2019 - 16:12
longjmp() at the end of an ISR ? Or Goto+flag ?
The avr-libc routines also save/restore the call-saved registers, cf. the .irp code. setjmp behaves like a function, i.e. clobbers the call-used regs so that any local whose...
Sunday, 12 May 2019 - 16:41
longjmp() at the end of an ISR ? Or Goto+flag ?
ISR+longjmp works as expected, in particular SREG and SP are saved in jmpbuf. And longjmp is designed to jump right out of a call tree (including any level of IRQs). . You are...
Sunday, 12 May 2019 - 15:19
asm syntax
Well, the code is from avr-libc demo, so...
Monday, 6 May 2019 - 18:58
asm syntax
Yes, except a single . which has special meaning for GAS. If you want to confuse everybody, use "..." as object name, works even from GNU-C: . int s asm ("..."); . Now s is...
Monday, 6 May 2019 - 17:36
asm syntax
The .0 means nothing, its part of the symbol name, hence you have to reference it as starttime.0 in asm. . The compiler uses this for local static, there could be several...
Monday, 6 May 2019 - 17:24

Pages