Patents
US 8,296,745 B2#26927847 Most CitedActiveUnited States (USPTO)Utility

Method and apparatus for portable stub generation

4Forward Citations (#26927847 Global)
0.3/yrCitation Velocity (#26429652 Global)
1.14Citation PageRank (#34882394 Global)
9Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

Method and apparatus for automatically generating intermediate-level interfaces between program methods written in a platform-independent language and program methods written in a native language. A portable stub generator generates stubs in an intermediate, tokenized internal representation. The stub generator is portable across platforms as the stubs it generates are not platform-specific. In addition, the generated stubs are available to the compiler at intermediate compilation stages rather than at the backend compilation stage, and thus may be optimized together with the rest of the platform-independent code, and also may be inlined. The portable stub generator may be directed at virtual machine environments. An exemplary virtual machine environment in which the stub generator may be implemented is the Java™ Virtual Machine (JVM). In JVMs, Java™ is the platform-independent language, and Java™ bytecode the tokenized internal representation. In a JVM, the stubs may be generated in accordance with Java™ Native Interface (JNI).

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 4.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A system, comprising: one or more processors; and a memory comprising program instructions executable by the one or more processors to implement a portable stub generator configured to: obtain an indication of a native language function to be called from a platform-independent language program in a virtual machine implemented on the system; and generate a stub in accordance with a tokenized internal representation of the virtual machine, wherein the stub comprises tokenized internal representation instructions configured to invoke the indicated native language function from a platform-independ

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • Franz et al., Portability Redefined, aqired from http://www.ics.uci.edu/~franz/Site/pubs-pdf/C01.pdf, pp. 216-224.
  • Franz et al., Portability Redefined, aqired from http://www.ics.uci.edu/˜franz/Site/pubs-pdf/C01.pdf, pp. 216-224.
  • Glew, Neal; Triantafyllis, Spyridon; Cierniak, Michal; Eng, Marsh; Lewis, Brian; Stichnoth, James; LIL: An Architecture-Neutral Language for Virtual-Machine Stubs, Virtual Machines Research & Technology Symposium, May 6-7, 2004.
  • Liang, Sheng, Java Native Interface: Programmer's Guide and Specification, Prentice Hall PTR, Jun. 1999.
  • Markus Hof, Just-In-Time Stub Generation, 1997-Springer, pp. 1-10.