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

I've seen plenty of c/c++/java functions that exceeded 200 lines of high level code. It seems reasonable to me that such a function would be 5k bytes of machine code, especially on a 64-bit architecture.

Not that such functions are the right way to structure your program...



> especially on a 64-bit architecture

Pointer size has little impact on code size. amd64 code can even be smaller than x86 in some cases.


I think you could easily get past a megabyte with auto-generated parser code. That would be stuff like lex, yacc, bison, antlr, flex, etc.

Anything with a big switch would qualify too, such as an emulator.




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

Search: