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…
Show HN: Online C/C++ to assembly visualizer [Weekend Project]
11–20 of 47 posts
Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#12Earlier quoted context omitted.
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…
I have now added some basic macro detection
Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#13Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#14Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#15I have a suggestion:
- Would you be able to separate the web interface, so that it could used to display Java -> JVM assembly, or any other language. Basically, so that it would be re-usable.
- Putting this up on GitHub would be great.
Finally, great work for just a weekend!
Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#16Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#17This could be a great educational tool! It could be used to teach Introductory Computer Organization at the college level. I have a suggestion: - Would you be able to separate the web interface, so that it could used to display Java -> JVM assembly, or any other language. Basically, so that it would be re-usable. - Putting this up on GitHub would be great. Finally, great work for just a weekend!
Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#18Can i recommend adding -masm=intel to your gcc flags? I know AT&T syntax is the default for gcc and gas, but not why. Intel syntax seems clearer to read and is used by most assembly tutorials.
Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#19If you do the 'flags' thing make sure you filter it to avoid escapes to the underlying shell.