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

Things that are hard about compiling to x86

Name: Anonymous 2015-07-30 0:16

It is really hard to compile arithmetic to x86 assembly because:

* (A) add x,y requires at least one of x,y to be a register.
* (B) mul x is predefined to use eax and edx registers.

These make it hard when you're trying to do register allocation because

* (A) What if you spilled x and now need to spill y? You cannot spill both
* (B) This messes with register coloring, you want to precolor the graph but the polytime algorithms (for chordal graphs, which SSA has) break if you precolor.

I'm really stuck, any advice welcome

Name: Anonymous 2015-08-06 19:57

>>48
Hi there!

You seem to have made a bit of a mistake in your post. Luckily, the users of /prog/ are always willing to help you clear this problem right up! You appear to have used a imagereddit meme when posting! Whoops! You should always remember to stop using imagereddit memes when the board you are posting in is a textboard! Posting with a imagereddit meme when it isn't necessary is poor form. You should always try to post following the culture of the site, unless your memes are absolutely vital to the post that you're making!

Now, there's no need to thank me - I'm just doing my best to help you get used to the text-board culture!

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