GNU Compiler for Java: Difference between revisions

Content deleted Content added
Adding local short description: "Java compiler", overriding Wikidata description "former GNU Compiler for the Java programming language" (Shortdesc helper)
m dash fix in bot generated titles (via WP:JWB)
Line 41:
 
===Comparison of language use===
The authors of CNI claim for various advantages over JNI:<ref>[https://gcc.gnu.org/java/faq.html#2_3 The GCJ FAQ - GNU Project - Free Software Foundation (FSF)<!-- Bot generated title -->]</ref>
 
{{cquote|We use CNI because we think it is a better solution, especially for a Java implementation that is based on the idea that Java is just another programming language that can be implemented using standard compilation techniques. Given that, and the idea that languages implemented using Gcc should be compatible where it makes sense, it follows that the Java calling convention should be as similar as practical to that used for other languages, especially C++, since we can think of Java as a subset of C++. CNI is just a set of helper functions and conventions built on the idea that C++ and Java have the *same* calling convention and object layout; they are binary compatible. (This is a simplification, but close enough.)