Live data from Hacker News

Show HN: Online C/C++ to assembly visualizer [Weekend Project]

assembly.ynh.io

1–10 of 47 posts

Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]

#2
Nice project. Will be more useful if there is an explanation of code generated. For example, making the various assembly instructions clickable and displaying information about them. Also a tiny bit of explanation about code and data sections might be of help too :)

Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]

#3

Nice project. Will be more useful if there is an explanation of code generated. For example, making the various assembly instructions clickable and displaying information about them. Also a tiny bit of explanation about code and data sections might be of help too :)

Ok added to the todo list

Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]

#6
post #3

Nice project. Will be more useful if there is an explanation of code generated. For example, making the various assembly instructions clickable and displaying information about them. Also a tiny bit of explanation about code and data sections might be of help too :)

Ok added to the todo list

You don't filter out CPP macro's. I would skip that and only allow C code. Or run this thing in a proper jail because at the moment:

- doing an include #include "/dev/random" will block the thread. - including "/etc/passwd" is also possible although I don't see a direct way to turn this into password disclosure.

Seriously; even if it's a weekend project, letting people run all kinds of potentially bad code on your machine is never a good idea. Even though you don't run the binaries yourself there's so many ways to mess around with a compiler. You just don't know what's going to happen.

Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]

#7
This really removes any hurdle I might have of inspecting the assembly code due to sheer laziness of opening up my Visual Studio and start debugging. Awesome work. If you add some type of interactivity to the generated assembly, it can be made more visual.

Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]

#8

Nice project. Will be more useful if there is an explanation of code generated. For example, making the various assembly instructions clickable and displaying information about them. Also a tiny bit of explanation about code and data sections might be of help too :)

I could have made the same comment. Good project, could be useful to me. A peace of asm documentation would be tasty.

Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]

#10
post #6
post #3

Earlier quoted context omitted.

Ok added to the todo list

You don't filter out CPP macro's. I would skip that and only allow C code. Or run this thing in a proper jail because at the moment: - doing an include #include "/dev/random" will block the thread. - including "/etc/passwd" is also possible although I don't see a direct way to turn this into password disclosure. Seriously; even if it's a weekend project, letting people run all kinds of potentially bad code on your ma…

chroot would probably be sufficient. Barring some sort of code execution vuln in the compiler you can only load stuff off of the filesystem.

Having the actual CPP available is nice because some bits of libc are only macros.

Post reply on HN