www.digitalmars.com         C & C++   DMDScript  

D.gnu - darwin's java frontend to gcc helpful?

reply Brian Hammond <d brianhammond.com> writes:
I built gdc from the 3.3.2 release of GCC but without Apple's extensions.  This
was a no-no as now I 
cannot link with Frameworks (or use any other Apple extensions obviously)... I
am attempting to build 
gdc using Apple's GCC avail from
http://developer.apple.com/documentation/DeveloperTools/gcc
-3.3/gcc/Source-Code.html

Once I had the source checked out, I realized of course that Apple has a Java
front-end for their version 
of GCC.  I've no idea if this would be useful to the gdc project because I know
nothing about GCC 
internals but I thought it might be useful to see how another front-end for GCC
was built.  After 
checkout, look in gcc3/gcc/java

I'll post more info about how I do with building gdc from Apple's GCC sources.
Should be the same 
instructions but we'll see.

Thanks, Brian
Apr 09 2004
parent reply David Friedman <d3rdclsmail earthlink.net> writes:
I will check out the Java front-end.  If you want to link with 
frameworks, you can the -Wl option to pass the -framework options to the 
linker.  Example:

gdc -o A7xBoot *.o ../import/imports.a -Wl,-framework,OpenGL
	-Wl,-framework,AppKit -Wl,-framework,SDL
	-Wl,-framework,SDL_mixer

David


Brian Hammond wrote:
 I built gdc from the 3.3.2 release of GCC but without Apple's extensions.  This
 was a no-no as now I 
 cannot link with Frameworks (or use any other Apple extensions obviously)... I
 am attempting to build 
 gdc using Apple's GCC avail from
 http://developer.apple.com/documentation/DeveloperTools/gcc
 -3.3/gcc/Source-Code.html
 
 Once I had the source checked out, I realized of course that Apple has a Java
 front-end for their version 
 of GCC.  I've no idea if this would be useful to the gdc project because I know
 nothing about GCC 
 internals but I thought it might be useful to see how another front-end for GCC
 was built.  After 
 checkout, look in gcc3/gcc/java
 
 I'll post more info about how I do with building gdc from Apple's GCC sources.
 Should be the same 
 instructions but we'll see.
 
 Thanks, Brian
 
 
Apr 10 2004
parent Brian Hammond <d brianhammond.com> writes:
Thanks David.

In article <c591m7$jfr$1 digitaldaemon.com>, David Friedman says...
I will check out the Java front-end.  If you want to link with 
frameworks, you can the -Wl option to pass the -framework options to the 
linker.  Example:

gdc -o A7xBoot *.o ../import/imports.a -Wl,-framework,OpenGL
	-Wl,-framework,AppKit -Wl,-framework,SDL
	-Wl,-framework,SDL_mixer

David


Brian Hammond wrote:
 I built gdc from the 3.3.2 release of GCC but without Apple's extensions.  This
 was a no-no as now I 
 cannot link with Frameworks (or use any other Apple extensions obviously)... I
 am attempting to build 
 gdc using Apple's GCC avail from
 http://developer.apple.com/documentation/DeveloperTools/gcc
 -3.3/gcc/Source-Code.html
 
 Once I had the source checked out, I realized of course that Apple has a Java
 front-end for their version 
 of GCC.  I've no idea if this would be useful to the gdc project because I know
 nothing about GCC 
 internals but I thought it might be useful to see how another front-end for GCC
 was built.  After 
 checkout, look in gcc3/gcc/java
 
 I'll post more info about how I do with building gdc from Apple's GCC sources.
 Should be the same 
 instructions but we'll see.
 
 Thanks, Brian
 
 
Apr 10 2004