Modeling foreign functions using executable references
Abstract
Techniques for representing a native function using an executable reference are disclosed. The system receives an instruction to create an executable reference for a native function, including a method type comprising a method signature corresponding to the executable reference, and a function description including (a) a memory layout corresponding to data returned by the function and (b) memory layouts corresponding to parameters required by the function. The system selects an application binary interface (ABI). The system generates code that, for each parameter, of the one or more parameters required by the function, converts the parameter from a value formatted for use by a Java Virtual machine to a value formatted for use in the native function, based on the selected ABI. Responsive to invocation of the executable reference, the generated code and the native function may be executed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 33 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
One or more non-transitory machine-readable media storing instructions which, when executed by one or more processors, cause: receiving an instruction to create an executable reference for a function written using a first coding language, wherein the instruction includes: a method type comprising a method signature corresponding to the executable reference, and a function description including (a) a memory layout corresponding to data returned by the function and (b) one or more memory layouts corresponding to one or more parameters required by the function; selecting an application binary int
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 2024184913 A1 | Automatic generation of implicit information | — | 0 |
| US 12,299,168 B2 | Automatic generation of implicit information | 2025 | 0 |
References Cited — Backward Prior Art (33)
Non-Patent Literature (5)
- Application Binary Interface, Wikipedia, 2017, 4 pages, [retrieved on Feb. 12, 2022], Retrieved from the Internet: <URL:https://web.archive.org/web/20170307083910/https://en.wikipedia.org/wiki/Application_binary_interface>.
- B. Wong, G. Czajkowski and L. Daynes, “Dynamically loaded classes as shared libraries: an approach to improving virtual machine scalability,” Proceedings International Parallel and Distributed Processing Symposium, 2003, p. 10 pp.—, doi: 10.1109/IPDPS .2003.1213123. (Year: 2003).
- J. Roney, T. Appel, P. Pinisetti and J. Mickens, “Identifying Valuable Pointers in Heap Data,” 2021 IEEE Security and Privacy Workshops (SPW), 2021, pp. 373-382, doi: 10.1109/SPW53761.2021.00057. (Year: 2021).
- Java Native Interface, Wikipedia, 2017, 5 pages, [retrieved on Feb. 12, 2022], Retrieved from the Internet: <URL:https://web.archive.org/web/20170325020302/https://en.wikipedia.org/wiki/Java_Native_Interface>.
- M. Cesati, R. Mancuso, E. Betti and M. Caccamo, “A Memory Access Detection Methodology for Accurate Workload Characterization,” 2015 IEEE 21st International Conference on Embedded and Real-Time Computing Systems and Applications, 2015, pp. 141-148, doi: 10.1109/RTCSA.2015.30. (Year: 2015).