Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why would anyone do this? If you've accepted that you're going to pay the cost to link against libc, use C. If you need to do something that specifically requires assembly, write that function (and that function only) in assembly. GCC will handle all of this very cleanly for you. You don't have to write main() in assembly.


> Why would anyone do this?

Learning exercise? Curiosity? Fun?


If you already have a codebase in assembly, and now you could really use a glibc call or two.


... The point is to use assembly, and a lot of people program in assembly simply for fun.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: