Xojo Conferences
XDCMay2019MiamiUSA

mach-o (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: How to specify REALbasic constants in terms of another variable v alue
Next thread: runtime failure


macosx and unix paths   -   GOLD
  mach-o   -   Chad J McQuinn
   Re: mach-o   -   Einhugur Software
   Re: mach-o   -   Chad J McQuinn
   Re: mach-o   -   Christian Schmitz

mach-o
Date: 26.06.04 21:44 (Sat, 26 Jun 2004 15:44:49 -0500)
From: Chad J McQuinn
It seems to me that CFM plugins get compiled into a mach-o build and
work fine, so the only reason to build a mach-o plugin is to use mach-o
libs w/o going through cfbundle; is that right?

If I do want to build a mach-o plugin, what is the "right" way to build
it? AFAIK, CW 9 has matched the ABI/mangling of gcc 3.3, which is
different from CW 8.3, and different again from gcc 3.1 (which is also
different from 2.95). Does RB handle the different formats itself? If
not, which one do I need to use?

Also, for linux/elf, is gcc 3.3 the compiler to use?

Thanks,
-Chad

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: mach-o
Date: 26.06.04 23:59 (Sat, 26 Jun 2004 22:59:32 +0000)
From: Einhugur Software

On 26.6.2004, at 20:44, Chad J McQuinn wrote:

> It seems to me that CFM plugins get compiled into a mach-o build and
> work fine, so the only reason to build a mach-o plugin is to use
> mach-o libs w/o going through cfbundle; is that right?

One of the larger points of Mach-O is to create applications that have
no Resource fork. REALbasic is almost there, Mach-O REALbasic apps
still have some items in resource fork, but not a lot. If your plugin
is only CFM then it is in Resource fork in the Mach-O App. It does not
mater a lot currently since the RB App has some Resources still there.

The other point and the greater point for me is:
If you create a Carbon Plugin then you have to account for both OS 9
and OS X, with some plugins such as user interface the differences can
be huge, so the result is a inefficient plugin with lots of ifs
checking if its Classic or OS X, and just trying to make it work in the
same plugin. Now with the Mach-O added then I will still make the
cluttered PEF Carbon with all the platform if's, but I will also make a
more efficient Mach-O segment that does not need to have to deal with
all the platform differences since it will only need to account for OS
X.

Re: mach-o
Date: 27.06.04 01:21 (Sat, 26 Jun 2004 19:21:15 -0500)
From: Chad J McQuinn
On Jun 26, 2004, at 5:59 PM, Einhugur Software wrote:
> One of the larger points of Mach-O is to create applications that have
> no Resource fork. REALbasic is almost there, Mach-O REALbasic apps
> still have some items in resource fork, but not a lot. If your plugin
> is only CFM then it is in Resource fork in the Mach-O App. It does not
> mater a lot currently since the RB App has some Resources still there.

That's not true at all. You can have or not have a resource fork on OS
10 as you desire, by using the appname.rsrc data-fork file. This has
nothing to do with mach-o vs. cfm. A cfm app can run just fine on os 10
without a resource fork.

As far as I can see, RB- produced app packages do not use a resource
fork even when you compile in a cfm plugin.

-Chad

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: mach-o
Date: 27.06.04 01:59 (Sun, 27 Jun 2004 02:59:53 +0200)
From: Christian Schmitz
Chad J McQuinn <<email address removed>> wrote:

> It seems to me that CFM plugins get compiled into a mach-o build and
> work fine, so the only reason to build a mach-o plugin is to use mach-o
> libs w/o going through cfbundle; is that right?

Correct. So currently I have only 4 mach-o plugins.
(and 200 PEF plugins)

Mfg
Christian