Author Topic: Is Oxygen.dll always needed?  (Read 1778 times)

0 Members and 1 Guest are viewing this topic.

matthew

  • Guest
Is Oxygen.dll always needed?
« on: January 26, 2014, 02:27:51 PM »
Reading this post I was interested in the following...

Quote
Currently O2 compiled executables depend on Oxygen.dll for the run-time library, but I am working on the 'independent' mode where the run-time library is included. This is of course essential when generating 64bit code with a 32 bit compiler.

Did the 'independent' mode ever get developed or do the executables still depend on the Oxygen.dll?

JRS

  • Guest
Re: Is Oxygen.dll always needed?
« Reply #1 on: January 26, 2014, 03:13:21 PM »
Welcome Matthew!

It's nice to see another graphics enthusiast here on the O2 forum.

Looking forward to your contributions to the O2 project.

John

Charles Pegge

  • Guest
Re: Is Oxygen.dll always needed?
« Reply #2 on: January 26, 2014, 03:27:36 PM »
Hi Matthew, Welcome to our forum.

Yes, we have had RTLs for some time now, that allow compiled programs to run without Oxygen. However, programs which use secondary/runtime compiling, such as an EVAL function, will still require Oxygen.

Simple example.

includepath "$/inc/"
%filename "t.exe"
include "RTL32.inc"
'include "RTL64.inc"
print "helo"


To run directly, all you have to do is comment out: 'include RTL..

Independent DLLs can also be created

includepath "$/inc/"
%filename "t.dll"
%DLL
include "RTL32.inc"
'include "RTL64.inc"

function greeting() as sys, export
print "helo"
end function


When an alias is unspecified, the exported function name is used as it appears, ie: it is case-sensitive.

« Last Edit: January 26, 2014, 03:37:56 PM by Charles Pegge »

matthew

  • Guest
Re: Is Oxygen.dll always needed?
« Reply #3 on: January 27, 2014, 10:31:11 AM »
Thanks for the nice welcome John. :-)

Thanks for the info Charles, I'll probably have some more questions soon. :-D