 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Christopher Burke Guest
|
Posted: Fri Mar 24, 2006 4:03 am Post subject: Is there a .NET compiler ? |
|
|
Ok - sounds like a silly question, but here goes.
Is there a compiler that compiles .NET to native anything (e.g. Win32).
I don't mean a program that packages a JIT... but one that literally
compiles it to Win32 like any other language.
If so - where ?
If not - why ? |
|
| Back to top |
|
 |
Jon Shemitz Guest
|
Posted: Fri Mar 24, 2006 4:03 am Post subject: Re: Is there a .NET compiler ? |
|
|
Christopher Burke wrote:
| Quote: | Ok - sounds like a silly question, but here goes.
Is there a compiler that compiles .NET to native anything (e.g. Win32).
I don't mean a program that packages a JIT... but one that literally
compiles it to Win32 like any other language.
If so - where ?
|
Yes. It's called NGen. Native Generate. In 2.0, NGen precompiles a
whole app; in 1.x, it works an assembly at a time.
--
<http://www.midnightbeach.com> Contracting, consulting, training
..NET 2.0 for Delphi Programmers <http://www.midnightbeach.com/.net>
In production - in stores by June |
|
| Back to top |
|
 |
John Jacobson Guest
|
Posted: Fri Mar 24, 2006 4:03 am Post subject: Re: Is there a .NET compiler ? |
|
|
Jon Shemitz <jon (AT) midnightbeach (DOT) com> wrote in message
<442362E9.6948ECF4 (AT) midnightbeach (DOT) com>
| Quote: | Yes. It's called NGen. Native Generate. In 2.0, NGen precompiles a
whole app; in 1.x, it works an assembly at a time.
|
Someone else on this newsgroup said that it only compiles your code in, not the
..NET framework pieces that your code relies on.
--
***Free Your Mind***
Posted with JSNewsreader Preview 0.9.4.2183 |
|
| Back to top |
|
 |
Chris Burrows Guest
|
Posted: Fri Mar 24, 2006 4:03 am Post subject: Re: Is there a .NET compiler ? |
|
|
"Christopher Burke" <borlandng (AT) craznar (DOT) com> wrote in message
news:44235d80$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Ok - sounds like a silly question, but here goes.
Is there a compiler that compiles .NET to native anything (e.g. Win32).
I don't mean a program that packages a JIT... but one that literally
compiles it to Win32 like any other language.
If so - where ?
If not - why ?
|
I don't know of one for Win32, but the guys who did PocketStudio Pascal for
the Palm have come up with something interesting for cross-compiling C#
code. I think it works by translating .NET IL code to C which is then
compiled for the Palm:
<quote>
Objects allows development of native, compiled applications in C# language.
Its a multiplatform system, currently supporting Palm OS 5.
Objects uses Microsoft (R) C# 2005 Compiler and Microsoft Visual C# 2005
Express Edition as preferred application development IDE.
</quote>
http://www.winsoft.sk/Objects.htm
--
Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp |
|
| Back to top |
|
 |
Chris Burrows Guest
|
Posted: Fri Mar 24, 2006 5:03 am Post subject: Re: Is there a .NET compiler ? |
|
|
"John Jacobson" <jake@j[nospam]snewsreader.com> wrote in message
news:4423684c (AT) newsgroups (DOT) borland.com...
| Quote: | Jon Shemitz <jon (AT) midnightbeach (DOT) com> wrote in message
442362E9.6948ECF4 (AT) midnightbeach (DOT) com
Yes. It's called NGen. Native Generate. In 2.0, NGen precompiles a
whole app; in 1.x, it works an assembly at a time.
Someone else on this newsgroup said that it only compiles your code in,
not the
.NET framework pieces that your code relies on.
|
Yes - that was me, but I'm happy to be proven wrong. Linking parts of the
framework into your app goes against the whole philosophy of .NET.
Precompiling using ngen is also not the norm. It should only be done for
special cases by those who really understand what they are doing - and that
doesn't include me yet.
--
Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp |
|
| Back to top |
|
 |
Christopher Burke Guest
|
Posted: Fri Mar 24, 2006 9:03 am Post subject: Re: Is there a .NET compiler ? |
|
|
Chris Burrows wrote:
| Quote: | Yes - that was me, but I'm happy to be proven wrong. Linking parts of
the framework into your app goes against the whole philosophy of .NET.
|
That's the philosophy that I'm trying to go against, so I can have an
APP written in .NET which I can distribute in a reliable working box.
Having the app depend on versions, revisions, current bugs, future bugs
in the .NET infrastructure is an issue.
Seems unlike Java, where a JVM is really easy to distribute, a '.NET
JVM' is somewhat less easy  |
|
| Back to top |
|
 |
Jim Cooper Guest
|
Posted: Fri Mar 24, 2006 11:03 am Post subject: Re: Is there a .NET compiler ? |
|
|
| Quote: | Is there a compiler that compiles .NET to native anything (e.g. Win32).
|
If you mean .NET languages then yes, but nothing mainstream that I know of
(Chris mentions the C# to PalmOS compiler).
If you mean converting IL to native then yes, NGen (2 does better including
framework stuff, but AFAIK there is some core stuff that is always JITted even then)
It's not really the philosophy behind .NET, I suppose. But in theory there is
nothing to stop someone doing that. In practice there might be. Compiling
striahgt C# is one thing, being allowed to compile the .NET framework itself
(which is IL when on your machine, AFAIK) might be different, I don't know.
Cheers,
Jim Cooper
_____________________________________________
Jim Cooper jcooper (AT) tabdee (DOT) ltd.uk
Skype : jim.cooper
Tabdee Ltd http://www.tabdee.ltd.uk
TurboSync - Connecting Delphi to your Palm
_____________________________________________ |
|
| Back to top |
|
 |
Atmapuri Guest
|
Posted: Fri Mar 24, 2006 11:03 am Post subject: Re: Is there a .NET compiler ? |
|
|
Hi!
| Quote: | Is there a compiler that compiles .NET to native anything (e.g. Win32).
I don't mean a program that packages a JIT... but one that literally
compiles it to Win32 like any other language.
|
Yes. There is:
http://www.remotesoft.com/linker/index.html
Regards!
Atmapuri |
|
| Back to top |
|
 |
marc hoffman Guest
|
Posted: Fri Mar 24, 2006 1:03 pm Post subject: Re: Is there a .NET compiler ? |
|
|
Christopher,
| Quote: | Seems unlike Java, where a JVM is really easy to distribute, a '.NET
JVM' is somewhat less easy
|
how is that?
--
marc hoffman
Chief Architect, .NET
RemObjects Software
http://www.chromesville.com
and the fifty-two daughters of the revolution
turn the gold to chrome |
|
| Back to top |
|
 |
Michael Baytalsky Guest
|
Posted: Fri Mar 24, 2006 2:03 pm Post subject: Re: Is there a .NET compiler ? |
|
|
| Quote: | Yes. It's called NGen. Native Generate. In 2.0, NGen precompiles a
whole app; in 1.x, it works an assembly at a time.
When you use it, it creates a native image in |
C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\
But you can't run that image, it reports that it's not a valid
win32 application. What needs to be done in order to get
a working image?
Regards,
Michael |
|
| Back to top |
|
 |
rich Guest
|
Posted: Fri Mar 24, 2006 3:03 pm Post subject: Re: Is there a .NET compiler ? |
|
|
Christopher Burke wrote:
| Quote: | Ok - sounds like a silly question, but here goes.
Is there a compiler that compiles .NET to native anything (e.g. Win32).
I don't mean a program that packages a JIT... but one that literally
compiles it to Win32 like any other language.
|
Ask around here on the NGs, someone will explain that you don't need to
do that and you must be crazy to even think it. |
|
| Back to top |
|
 |
Craig Stuntz [TeamB] Guest
|
Posted: Fri Mar 24, 2006 4:03 pm Post subject: Re: Is there a .NET compiler ? |
|
|
I.P. Nichols wrote:
| Quote: | Come on Craig, that doesn't link parts of the framework into your app.
|
I didn't say otherwise. But I do disagree with the "goes against the
whole philosophy bit."
--
Craig Stuntz [TeamB] ˇ Vertex Systems Corp. ˇ Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Borland newsgroup denizen Sergio González has a new CD of
Irish music out, and it's good: http://tinyurl.com/7hgfr |
|
| Back to top |
|
 |
I.P. Nichols Guest
|
Posted: Fri Mar 24, 2006 4:03 pm Post subject: Re: Is there a .NET compiler ? |
|
|
"Craig Stuntz [TeamB]" wrote:
Come on Craig, that doesn't link parts of the framework into your app. |
|
| Back to top |
|
 |
Eric Grange Guest
|
Posted: Fri Mar 24, 2006 4:03 pm Post subject: Re: Is there a .NET compiler ? |
|
|
| Quote: | But you can't run that image, it reports that it's not a valid
win32 application. What needs to be done in order to get
a working image?
|
You can't.
NGEN is only basicly just pre-caching pre-JITted sections of the code,
but the output isn't a native executable (and at runtime, the framework
is free to ignore the NGEN'ed stuff completely, so there isn't even a
guarantee of a faster startup speed or reduced JIT overhead).
Eric |
|
| Back to top |
|
 |
Atmapuri Guest
|
Posted: Fri Mar 24, 2006 4:03 pm Post subject: Re: Is there a .NET compiler ? |
|
|
Hi!
| Quote: | Come on Craig, that doesn't link parts of the framework into your app.
|
But these guys do:
www.remotesoft.com
Regards!
Atmapuri |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|