DISCLAIMER: These notes are from the defunct k8 project which precedes SquirrelJME. The notes for SquirrelJME start on 2016/02/26! The k8 project was effectively a Java SE 8 operating system and as such all of the notes are in the context of that scope. That project is no longer my goal as SquirrelJME is the spiritual successor to it.
My compiler code will have to be multi-threaded so that multiple things can compile at once, since many threads could be calling the class definition interface in the kernel. Having it do a single class as any one time will just be slow.
Going to need it where debugging information sticks during tokenization and retranslation of input code and such.
Working on the C output, at least decoration currently.
The decoration is quite long also,
getCurrentFile ()Lnet/multiphasicapps/cpp/PreprocessorTask$File; becomes
So I am going to need shorter sequences for certain characters. I can use
uppercase followed by an underscore, that can work out well. Just wonder if I
will land in the same spot due to using HashMap. After shortening the result
using base36 for the length of things, I can probably save 1 to 2 characters.
Although if I want to save the most space, I could just gzip the class info.
However padding might force them to be really long.
I can go even further and shorten "java." and "net.multiphasicapps." sequences.
And doing that I now have
FL_Lcpp_BPreprocessorTask_DFi le_C. So that is much smaller than before.
I believe for FreeTanx, I am going to use a very low version of OpenGL instead. Nobody uses immediate mode anymore, but is rather simple to use. My game also does not need super fancy graphics either. Although if I code it a certain way, I could also write a Java3D backend so FreeTanx could test that also.
Actually, appears that I am using an outdated copy of the OpenGL interfaces in my copy of JSR 231. Well, I should use the newer interfaces which can support 3.0 and embedded rather than just plain old 1.0. JSR231 has a 2.0 version which is beta since 2011 (dead?). Therefor I should use that instead because it is much newer.