--- In lpc2000@yahoogroups.com, Ralph Hempel <rhempel@...> wrote: > The buf_inpos and buf_outpos are still a mystery. One looks like it's > being loaded from a fixed value that's stored close by in code space: > > ldr r3, [pc, #304] > > while the other looks like it's coming off the stack frame: > > ldr r1, [r11, #-28] > > Ralph The thing that struck me as strange about the comparison is that it's loading one as a byte the other as a word and then comparing. > >> E59F3130 ldr r3, [pc, #304] > >> E5D33000 ldrb r3, [r3] > >> E51B101C ldr r1, [r11, #-28] > >> E1530001 cmp r3, r1 Hance my interest in seeing how they were declared. Isn't this fun, second-guessing a compiler! NOT! Note to self: find something more productive to do with my time.... Brendan
Message
Re: Strange GCC compiler assembler output
2006-05-03 by brendanmurphy37
Attachments
- No local attachments were found for this message.