3 ms·
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 machin
by mac01021 6y ago
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...
- account42 6y ago> 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.
- knaq 6y agoI 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.