问题描述
我想你会同意我的看法,一个直接生成Java字节代码的C编译器可以在任何JVM上运行,这对于软件程序员来说是不可能的。至今。使用这样的工具,可以使用C保留
,并且仍然可以为
平台独立应用程序生成Java字节代码。此外,旧程序(有一些调整)
可以重新编译并移植到JVM。
我们一直在开发这样一个工具2年,现在是测试它的b $ b beta版。
它被称为MPC(适用于多平台C),你可以下载测试版
或版本rel =nofollowhref =http://freshmeat.nettarget =_ blank> http://freshmeat.net
Napi
I think you would agree with me that a C compiler that directly
produces Java Byte Code to be run on any JVM is something that is
missing to software programmers so far. With such a tool one could
stay with C and still be able to produce Java byte code for
platform independent apps. Also, old programs (with some tweaking)
could be re-compiled and ported to the JVM.
We have been developing such a tool over the last 2 years and currently
beta testing it.
It''s called MPC (for Multi-Platform C) and you can download the beta
version at http://www.axiomsol.com or at http://freshmeat.net
Napi
推荐答案
嘿。 / All / C应该是多平台的,如果程序员支付
注意相关标准。
Heh. /All/ C should be multi-platform, if the programmer is paying
attention to the relevant standards.
多平台C运行...仅在此平台:
- Linux for x86操作系统(任何发行版)运行
内核2.4或更新版
期间。
你应该在发货时把MPC标志放在你的产品中
当然。
jacob
The multi platform C runs... in this platform only:
- Linux for x86 operating system (any distribution) running
kernel 2.4 or newer
Period.
AND you should put the MPC logo in your product when shipping
of course.
jacob
可能因为为像Java VM这样的VM编写C是非常愚蠢的,
当你/应该/从你的内部链接到预编译的库时
Java(或Perl,或其他)代码。
Probably because writing C for a VM like the Java VM is pretty stupid,
when you /should/ be linking to precompiled libraries from within your
Java (or Perl, or whatever) code.
不一样的东西。这是Microsoft .NET的方法(其中一些人认为也是愚蠢的。)
Not the same thing. This is the Microsoft .NET approach (which some
people also think is stupid.)
我可以诚实地说我从来没有需要移植传统的C到Java VM等VM环境。老实说,我没有看到需要,正如我上面所说的那样。
I can honestly say I''ve never needed to port legacy C to a VM
environment like the Java VM. I honestly can''t see the need, as I''ve
said above.
嘿。 / All / C应该是多平台的,如果程序员正在注意相关标准。
Heh. /All/ C should be multi-platform, if the programmer is paying
attention to the relevant standards.
-
Al Balmer
Balmer Consulting
这篇关于C到Java字节代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!