Raptor Computing Systems Community Forums (BETA)

Software => Operating Systems and Porting => Topic started by: tle on March 15, 2025, 11:12:34 pm

Title: [DEV] Any interactive REPL tooling for OpenPOWER assembly
Post by: tle on March 15, 2025, 11:12:34 pm
I am learning PowerPC assembly by playing around with assembly inlined in C code. Wondering is there any interactive tool that shows the full list of registers and other useful information for assembly language? Many thanks in advance
Title: Re: [DEV] Any interactive REPL tooling for OpenPOWER assembly
Post by: ClassicHasClass on March 16, 2025, 12:26:20 am
This is going to sound like a flippant response and it really isn't, but pretty much any debugger would do (I use gdb but lldb should handle it also). You could throw an __asm__("trap\n") in your code and you'll drop into the debugger at that point, from which you can single step and look at the registers as you go along.
Title: Re: [DEV] Any interactive REPL tooling for OpenPOWER assembly
Post by: atomicdog on March 16, 2025, 02:26:57 am
Compiler explorer (https://godbolt.org/) is a cool tool, not sure if it has the features you're looking for though.