Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How much faster would my C program be if

Name: Anonymous 2013-09-27 21:36

I skipped all the function bullshit and just used main() for everything and used goto in an BASIC line number fashion?

Name: Anonymous 2013-09-27 21:56

You'd probably lose all optimization, so you'd actually be losing speed.

Name: Anonymous 2013-09-29 3:47

>>2
FUCK OFF

Name: Anonymous 2013-09-29 3:56

>>1
You might as well use assembly if you will forgo functions, which is major main point of High level languages.

Name: Anonymous 2013-09-29 4:12

>>1
>>2

It's like what happened when the macbook air came out with flash-only drives. Performance was notably worse. Why?

Because current filesystems had decades of ``optimized cruft'' for spinning magnetic hard drives. So, basically the same story for your code and clang/gcc.

muh branch prediction

Name: Anonymous 2013-09-29 4:29

>>5
I am surprised someone still remembers that, and has the guts share to share, as an analogy. Thanks, really.

Name: Anonymous 2013-09-29 15:21

For maybe some simple applications you'd get a small performance boost, but in larger applications, due to the difficulty of programming, you'd probably fuck up and get a performance hit. Not really worth it IMO.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List