Calling opcode string discussion
#19
The code gets fully compiled but is run directly in memory instead of loading an EXE (PE) file. This feature is not intended for finished apps to commercial customers.

A simple progam:
Code:
print "Hello World!"
This is all you need to run in JIT mode.
To compile to an exe or DLL. Your source code would look like this:

Code:
$ filename "t.exe"
uses RTL32 ' or RTL64
print "Hello World!"

To make a DLL:
Code:
$ DLL
$ filename "t.exe"
uses RTL32 ' or RTL64
function hello() export
  print "Hello World!"
end function

Extract the file and place it wherever convenient. To run .o2bas files JIT, open 'properties' for any o2bas file and configure opens with:
co2.exe

Apart from this, no further configuration is needed.

OxygenBasic.zip can be downloaded from Github. @ My signature below.
https://github.com/Charles-Pegge/OxygenBasic
https://forum.it-berater.org/index.php
Reply


Messages In This Thread
RE: Calling opcode string discussion - by Charles Pegge - 02-05-2025, 06:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)