Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-11

Viewing disassembly without call stack?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jim Leonard

When I use the text-based FP CUI and my program crashes, I have the ability to go to a line in the resulting call stack and hit ALT+I to view the disassembly of where it crashed. Is it possible to view the disassembly of any line without needing the program crashing?

What I'm after is something where I can rewrite a line/section, compile, and then view the disassembly to see if what I wrote produces more optimal code.

Jim Leonard () Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars: http://trixter.oldskool.org/ You're all insane and trying to steal my magic bag!
Martin
to Jim Leonard
Jim Leonard wrote 8 lines
When I use the text-based FP CUI and my program crashes, I have the ability to go to a line in the resulting call stack and hit ALT+I to view the disassembly of where it crashed. Is it possible to view the disassembly of any line without needing the program crashing? What I'm after is something where I can rewrite a line/section, compile, and then view the disassembly to see if what I wrote produces more optimal code.

Compile with -al
and the compile will write assembler source files