Compiler - overriding ABI
Posted: Thu Jul 30, 2015 11:00 am
My god.. I wished I would never ask such a question.
Okay, I am creating a compiler. Not the next gcc/clang, as you may have guessed.
But the one that fits my language ("God.. that guy is willing to be burried alive"), without being overly complicated and relying on another language with its runtime libraries (c++).
Only one architecture is needed : x86_64.
I don't want to go multithreading either, and compile there. I coded in C too much and prefer my language (and happen to LOVE machine language.. weird).
Okay. Still there?
Now, for further optimizations in my compiler, I will need to override the x86_64 ABI.
It is just a though right now. But I would like it very much.
After all, an abi is just a rule.. that we may override.
I see no problem in doing this if my compiler is coded to do the hip-hop/funk between function calls and return register.
Do you see a practical problem that I may have overlooked?
Okay, I am creating a compiler. Not the next gcc/clang, as you may have guessed.
But the one that fits my language ("God.. that guy is willing to be burried alive"), without being overly complicated and relying on another language with its runtime libraries (c++).
Only one architecture is needed : x86_64.
I don't want to go multithreading either, and compile there. I coded in C too much and prefer my language (and happen to LOVE machine language.. weird).
Okay. Still there?
Now, for further optimizations in my compiler, I will need to override the x86_64 ABI.
It is just a though right now. But I would like it very much.
After all, an abi is just a rule.. that we may override.
I see no problem in doing this if my compiler is coded to do the hip-hop/funk between function calls and return register.
Do you see a practical problem that I may have overlooked?