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

c

Name: Anonymous 2015-02-07 6:44

The C language converts to ASM in a very straight forward way. It is ridiculous
to optimize subexprressions and similar stupid things when a competent C
programmer can do it by hand.

Don't make the compiler a clusterfuck because of retard-programmers.

Name: Anonymous 2016-10-25 6:22

>>16
the portable assembler! let's you use all kinds of CISC instructions from portable C code, and if the target doesn't have it you just produce a few more instructions.

it's actualy not that ridiculous if you think about it in the larger context of compilation: The way a C compiler does instruction selection is by attempting to tile the AST with prepared the instructions it knows matches AST patterns. So exactly the same technique to know when to use an add, mul, or a complicated address calculation is also used to turn that pattern of code into a popcnt inst.

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