r/C_Programming • u/Specy_Wot • Oct 12 '26
Project Compile C/C++ into assembly and emulate it in the web in many architectures
Enable HLS to view with audio, or disable this notification
Hello everyone! For the past few years I've been working on ASM editor (github), an IDE for assembly running completely on the web with many architectures available (x86, mips, risc-v, m68k, z80 and more to come) with a lot of debugging features like step by step execution, undo, memory and registers viewers, breakpoints, observability of what each instruction did and much more!
Recently I've added a feature I had dreamed of adding for a long time, C and C++ compilation! It allows you to write C and C++ code (with a subset of libc available), compile it to assembly to see how each line was compiled, to then execute it with all the debugging tools available in the IDE.
I'd love to get opinions/suggestions/feedback about it, please let me know in the comments!
Here is an example of fibonacci in C compiled to x86
I've been working on this app for around 3 years, initially as a replacement for easy68k and the MARS simulators so that my university could use a more modern alternative, to then add x86 and risc-v.
Recently while using AI i refactored other emulators to add the tools needed for the interfaces used inside the app and i managed to add z80 and hopefully arm and more architectures soon.
âĸ
u/github-guard Oct 12 '26
đ GitHub Guard: Trust Report (Passed)
Here are the safety audit results for the linked repositories:
Repository: Specy/asm-editor
Score: 4/6
30
u/OptimisticMonkey2112 Oct 12 '26
how does it compare to https://godbolt.org/?
4
u/Marwheel Oct 12 '26
What are the limitations of it? The one i could think of is that it can't run X11 or Wayland apps directly on it.
Also with the closest university to me having books on VAX (and PDP-11 i think) assembly, it might be useful to add heritage ISA's for educational and research use.
2
u/AutoModerator Oct 12 '26
Hi /u/Specy_Wot,
Your submission in r/C_Programming was filtered because it links to a git project.
You must edit the submission or respond to this comment with an explanation about how AI was involved in the creation of your project.
While AI-generated code is not disallowed, low-effort "slop" projects may be removed and it's likely that other users push back strongly on substantially AI-generated projects.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/realestLink Oct 16 '26
This is interesting af
0
u/github-guard Oct 12 '26
đ GitHub Guard: Trust Report (Passed)
Here are the safety audit results for the linked repositories:
Repository: Specy/asm-editor
Score: 4/6