This is where projects like the Compiler Explorer is a much easier solution: https://godbolt.org/ /HH Den fre 5 juli 2024 kl 13:45 skrev Johannes Krottmayer via Gcc-help < gcc-help@xxxxxxxxxxx>: > Hi! > > I have some troubles on a project when I enable optimizing (-O2). The > code works without optimizing. To fix this issue I need to know, the > correct line in my C code, where the issue persist. > > Is there an option to produce an output from the assembled code WITH > the C code? There exists the option -S, but I only outputs the assembly. > > AFAIK, there exists an option at least for the AVR port on older (???) > GCC versions, but I have unfortunately forgotten the correct option. > > Thanks in advance! > > Kind regards, > > Johannes > >