l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 24: LUGOD election season has begun!
Page last updated:
2003 Jun 29 14:08

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Compiling C into Java bytecode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Compiling C into Java bytecode?



hi bill,

i've been thinking about this problem since you and i talked about it in
on the way to fry's.

don't ask me why.  i have no desire to learn java (other than it would
be a nice stocking stuffer for my resume, but i've been finding less
interest in java than what i perceived the job market having a few years
ago).

i googled a bit, and perhaps this would help:

   http://www.cs.ucla.edu/~ashapiro/cminusjava/

i played with it a bit and it didn't work.  maybe you'll have better
luck.

here's some more (check out jvmcomp.sml):

   http://www.it-c.dk/courses/PFOO/F2003/overview.html

and this page describes "Objective-J", a project that compiles a subset
of objective C to java bytecode:

   http://maccentral.macworld.com/news/2001/05/22/birds/

the url figures, doesn't it?  :)  i can't find much on objective-j
though.

it looks like people have thought about the problem, briefly.  you'll
have to do some serious digging.  but it really looks like there are no
mature projects going on that translates C to java bytecode.

it looks like you might have luck in translating C to IL bytecode.  not
sure what IL bytecode is, other than it seems to be associated with
mono/.NET.  yuck.

pete



On Sun 29 Jun 03,  8:35 AM, Mark K. Kim <markslist@cbreak.org> said:
> I think I've heard of such program.  Sorry but I can't remember what it's
> called or where I heard it.  I vaguely seem to recall hearing about it
> from Brian Lavender but that's probably just in my imagination.  Have you
> asked it on Saclug list?  Couldn't hurt.
> 
> -Mark
> 
> 
> On Sun, 29 Jun 2003, Rod Roark wrote:
> 
> > On Sunday 29 June 2003 02:32 am, Bill Kendrick wrote:
> > > Okay, just out of curiosity.  Say one wanted to create a 'Java application'
> > > (e.g., something that runs in a web browser, cell phone or PDA JVM),
> > > but they wanted to write the application using the C /language/.
> > >
> > > This is possible, is it not?  If so, are there some tools for this
> > > under Linux?  (I see "gjc", the Java compiler from GNU, as well as
> > > "gij", the Java bytecode interpreter from GNU; but nothing for
> > > taking code in other programming languages and turning them into Java
> > > bytecode)
> >
> > I don't know of any way to do that, nor why anyone would
> > want to.  Java syntax already resembles C quite a bit.
> >
> > Tell them to write it in C, run it through a Java compiler,
> > and fix the parts that don't work.  :-)
> >
> > Best,
> > --
> > Rod Roark, Sunset Systems     http://www.sunsetsystems.com/
> > Offering preconfigured Linux computers, custom software and
> > remote system administration services.
> > Public Key: http://www.sunsetsystems.com/rodspublickey.asc
> >
> > _______________________________________________
> > vox-tech mailing list
> > vox-tech@lists.lugod.org
> > http://lists.lugod.org/mailman/listinfo/vox-tech
> >
> 
> -- 
> Mark K. Kim
> http://www.cbreak.org/
> PGP key available upon request.
> 
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

-- 
GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!