assembly programming in Emacs how to?
I want Emacs to do following things
1. assembling
2. run the just before made program inside Emacs
3. debugging with watching flags and registers as like ollydbg or softice
4. decompile executable file for see what assembly codes are made by c
but I don’t know how to do this
could somebody let me know ?
assembly programming in Emacs how to? I want Emacs to do following things 1.
Share
Which operating system (and machine architecture) are you using? I think that’s quite essential information for questions about assembly programming.
I’ll try to answer your four points anyway:
Just run your assembler (e.g.
as) fromM-x compile.Run it from a shell buffer or from
shell-command(bound toM-!).Emacs’ built-in graphical debugging support is started with
M-x gdb. You may have to look for some external debugger support package if GDB is not suitable for your purposes.For disassembling object code, I’d use GDB. But I think if you have the C sources, it would be better to compile them with the
-Sflag to see the assembly code emitted by the compiler instead of what can be reconstructed from the machine code.