Surf the wave

Links for 2009-07-05


Toolchain | Frontend | CLR to JVM | JavaScript | iPhone/Objective-C | Android to iPhone Details: iPhone/Objective-C

Apple's iPhone has generated huge interest amongst users and developers alike. Like MacOS X, the iPhone development environment is based on Objective-C as the development language and Cocoa for the GUI library. The iPhone SDK license agreement does not permit the development of a virtual machine. Using XMLVM, we circumvent this problem by cross-compiling Java to the iPhone. Just like a Java application can be cross-compiled to AJAX, XMLVM can be used to cross- compile a Java application to Objective-C. The cross-compilation is also accomplished by mimicking a stack-based machine in Objective-C. Consider the <jvm:irem> instruction (integer remainder) that pops two integers off the stack and pushes their remainder after division back onto the stack. Using the following XSL template, the <jvm:irem> instruction can be mapped to Objective-C:

<xsl:template match="jvm:irem">

(tags: java iphone jvm crosscompiler objective-c)