Hi Rikus.
Excellent
point: XBLite's main appeal is a very easy “fresh” installation.
So, if I understand correctly, your vote goes for a compiler generating the support routine on a needed basis.
- 0 for a xblib.lib
"clone",
- 1 for assembler routine injection.
Thank you for your answer.
Now, let me ask you, Rikus: How would you benefit for a new XBLite Unicode compiler?
Since you brought your grain of salt, I’m getting curious hear more...
Bye! Guy
Hi Xbliters, Hi Alan!
Hi Xbliters.
A
comment in xblite.x says:
"The logic of the compiler is to
assure that the standard run-time is always linked, even if not
IMPORTed. All programs require it anyway, so it might as well be
linked automatically. If the dynamic dll (xst or xbl.dll) is not
specified, it will default to a static one, under the assumption that
this is what most programmers would want."
Comforted
by Rikus' suggestion, I decided to "revert" this very
logic.
I decided:
1.To find a way to collect the
assembly routines in a single file, which I called asm_routines.xxx;
2.To establish a list of actually called routines;
3.To extract each called routine’s body from asm_routines.xxx.
I started with .\xblib\: I generated exactly 148 GRAB statements and I got my first asm_routines.xxx
When I wanted to move to .\xbdll\lib\, I balked from re-doing it all over.
So, I enhanced the GRAB keyword to accept and process file filters in addition to processing file paths. Then, I got my second “single file” with GRAB "*.asm".
I could append the many [CODE, END CODE] generated by the GRAB "*.asm" to asm_routines.xxx, which I placed in .\xblite\templates\.
When xblite.x will properly generate ASCII assembly programs, I will duplicate this technique for UTF-16 LE.
Quietly sailing the XBLite clipper from the ASCII sea to the Unicode ocean!
Bye! Captain Guy
Hi Xbliters.
I
am only one person, and I feel that I can't go through the enormous
mass of demo programs in .\xblite\demo\.
I would really
appreciate if some of you could bear this load with me.
Could
you please offer your time and energy by taking one, two and even
more torture tests?
The more, the merriest!
Bye!
Guy
PS. Attached is a for instance of what I expect from
you, dear Xbliters:
1. demo.x
2. demo.asm (generated by
xblite v1.42.16)
3. demo.mak (generated by xblite v1.42.16)
4.
compile.png
5. link.png
6. run.png
4, 5 and 6 are
screenshots of XSED.
The 6 files are zipped into
demo_you_yyyy_mm_dd.zip, here "asmvariable_guy_2018_03_03.zip".