Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#54777 - 04/01/2002 02:40 Online compiler would be neat...
jheathco
enthusiast

Registered: 21/12/2001
Posts: 326
Loc: Mission Viejo, California
Would be neat if someone could write a little script (PHP would be easy, I'm sure many other languages would be too) to take input a .c file and compile it for ARM, and then spit a compiled file back at the user. This could be done on any machine with support to compile for ARM, since many of us can't do it. I'd be willing to code the PHP script if someone with an ARM compiler could host it.
_________________________
John Heathco - 30gig MKIIa w/ tuner module

Top
#54778 - 04/01/2002 06:23 Re: Online compiler would be neat... [Re: jheathco]
rob
carpal tunnel

Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
Given that GCC compiles for ARM, there can't be many platforms that DON'T have a suitable compiler.

Rob

Top
#54779 - 04/01/2002 09:58 Re: Online compiler would be neat... [Re: jheathco]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Okay, just for fun.. send me such a script.

-ml

Top
#54780 - 04/01/2002 12:34 Re: Online compiler would be neat... [Re: mlord]
jheathco
enthusiast

Registered: 21/12/2001
Posts: 326
Loc: Mission Viejo, California
Rob, that's true, but there's a few problems with that. One, many of us don't have access, or if we have access, don't have the ability to install an ARM cross-compiler on a linux machine. Secondly, I'm sure most of us are running Windows, and no one here has posted (from what I've seen) that they have successfully gotten an ARM compiler working on that OS, with Cygwin or without.
_________________________
John Heathco - 30gig MKIIa w/ tuner module

Top
#54781 - 04/01/2002 17:23 Re: Online compiler would be neat... [Re: rob]
jheathco
enthusiast

Registered: 21/12/2001
Posts: 326
Loc: Mission Viejo, California
OK, well I've made a PHP script (very small) and an HTML file that will allow a user to visit the site, upload a .C file, which will be compiled and a binary will be spit back at the user. Now, all we need is someone to host these two files on a machine with PHP and an arm-compiler and we're all set. mlord would have done it but his box is too slow to build a cross-compiler.

Anyone up for it? I assume if we got this going, we'd have a lot more people developing as a compiler would be easy to get access to.
_________________________
John Heathco - 30gig MKIIa w/ tuner module

Top
#54782 - 04/01/2002 18:05 Re: Online compiler would be neat... [Re: jheathco]
CommOri
journeyman

Registered: 30/12/2001
Posts: 83
This online compiler is a GREAT idea.

I know from past experience that there are commercial ARM compilers for Windows, but they're not consumer level at $1500 or more and I can't stand the idea of running a Linux box just to have access to a compiler.

I'd do this myself, I have about 7 or 8 fast machines, but I just moved and no longer have DSL.

I *do* have a host in Silicon Valley on a fast connection. No guarantee on how long it will be up, though. We could potentially use it for testing and to get some sort of setup procedure in place.

I wouldn't mind opening up a directory for this purpose as long as the hits and processor time don't go through the roof.

Let me know.

Top
#54783 - 04/01/2002 18:13 Re: Online compiler would be neat... [Re: jheathco]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I'm not aware of any reason that it wouldn't be possible for an ARM gcc cross-compiler to be built under Win32 using Cygwin. I personally can't do it because I'm actually running out of disk space. I'll try to clear some space and give it a shot, though. But someone else should try, too.
_________________________
Bitt Faulk

Top
#54784 - 04/01/2002 18:24 Re: Online compiler would be neat... [Re: wfaulk]
jheathco
enthusiast

Registered: 21/12/2001
Posts: 326
Loc: Mission Viejo, California
I've tried the cygwin option... I compiled gcc and binutils fine.. when I tried to compile a .c file, it gave me an error about not finding crt0.o. I tried creating one using arm-elf-as on arm7.s, and that seemed to work, but now I get this error:

$ arm-elf-gcc test2.c
/tools/H-i686-pc-cygwin/arm-elf/bin/ld: cannot find -lc
collect2: ld returned 1 exit status

I think I'm over spending hours trying to get this to work. Let's go the online compiler way... contact me on AIM at heathco98 or ICQ at 43405666
_________________________
John Heathco - 30gig MKIIa w/ tuner module

Top
#54785 - 04/01/2002 20:26 Re: Online compiler would be neat... [Re: jheathco]
hybrid8
carpal tunnel

Registered: 12/11/2001
Posts: 7738
Loc: Toronto, CANADA
You didn't check out any of the GBA developer sites I talked about did you?

Bruno (ok, I didn't actually mention the URLs before... )

Page listing ARM compiler stuff at devrs.com
www.devrs.com/gba/
www.gbadev.org

Now, these guys are into Gameboy Advance development. A lot of guys write only for Thumb, so you'll see a lot of discussion for that as well. I'm not sure if you will need any additional files for the SA1000 over what seems to be widely talked about and linked.

You also be surprised what you can find by typing stuff like "arm gcc windows" etc. into google.
_________________________
Bruno
Twisted Melon : Fine Mac OS Software

Top