Re: Wrong assembly code generated from C code (ARM Cortex-m3) ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 2, 2021 at 5:22 PM Sébastien Gendre <seb@xxxxxx> wrote:
>
> And I'm sure I can run code on the microcontroller because if I don't
> declare the pointers to the registers and I just declare an int variable
> and set its values multiple times it work (I can run it, inspect
> variables, place breakpoints, etc). For debug I use GDB.

I would at least not use Thumb in the beginning. This is notoriously
annoying to debug in gdb because you can never be sure that the CPU's
and the debugger's opinion on the current operating mode agree.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux