Hi All,
I've been experimenting with KolibriOS.
Very nice!
Now I must say that I am a decent Asm coder,
provided that it is not more than 15 lines
at a time. But, as an interest to develop
apps for this OS, I looked at tools that others
have used other than asm language. The articles
that have been written explaining how to use other
tools are well done. "Hats off" to the author!
With some Babel Fish, I discovered how to
use Watcom C++ and raw files. I came up
with a file of 548 bytes.
Another tool not mentioned (that I could tell)
was PellesC. You can play tricks just like
the MASM example.
#pragma comment(linker,"-subsystem:native")
#pragma comment(linker,"-base:-0x10000")
#pragma comment(linker,"-align:0x10000")
#pragma comment(linker,"-merge:.data=.text")
But again, not very small code size at 455
bytes.
So I went back to the MS VC example.
I came up with an alternate way other
than using pe2kos.
This one is called exe2kos. Same basic
ideas, just some twist on the code.
Bin and source files along with example
are attached.
It uses imagehlp.dll. If your system doesn't
have it, find it on the net somewhere.
Here are the rules on the compiled exe:
* Merge all sections to .text
* /ALIGN 0x10000
* /FIXED:NO
* You need to reserve 36 bytes for the KOS header
See the example and note the smaller file size.
Maybe someone will give this a try and
make suggestions and/or corrections.
Mark
exe2kos
-
- Attachments
-
-
Hello.jpg (4.03 KiB)Viewed 4055 times
-
exe2kos.rar (12.42 KiB)Downloaded 343 times
-
Hi there,
You don't need babelfish since this article (if that's the one I think it is) exists in English: http://diamondz.land.ru/hll/hll_eng.htm
Cheers
You don't need babelfish since this article (if that's the one I think it is) exists in English: http://diamondz.land.ru/hll/hll_eng.htm
Cheers
in code we trust
Nice work.
Who is online
Users browsing this forum: No registered users and 7 guests