发明名称 Method for just-in-time compilation and execution of code blocks within discrete event simulations
摘要 A method for a discrete event simulation model of a system utilizing a just-in-time compilation for one or more code blocks associated with an event in one or more discrete event simulation models is disclosed. The method comprises the steps of determining the event in a discrete event simulation model, retrieving the code block associated with the event, compiling the code block into an object file using a compiler, linking the object file with a predetermined function in a simulation library, compiling the object file and the predetermined function into a customized dynamic link library, loading the customized dynamic link library (DLL) within a discrete event simulation program execution and linking the customized DLL to a simulation program. The method allows user entered logic to be executed in high speed by integrating a just-in-time compiler embedded into the discrete event simulation model to allow dynamic generation of high speed code blocks within one or more simulations.
申请公布号 US8826250(B2) 申请公布日期 2014.09.02
申请号 US201012828239 申请日期 2010.06.30
申请人 Bioproduction Group 发明人 Johnston Lenrick;King Quint
分类号 G06F9/445;G06F17/50;G06F9/455;G06F9/45;G06F9/44;G06F9/46 主分类号 G06F9/445
代理机构 Temmerman Law Office 代理人 Temmerman Law Office ;Temmerman Mathew J.
主权项 1. A method for discrete event simulation model of a system utilizing just-in-time compilation for at least one code block associated with at least one event in the discrete event simulation model, the method comprising the steps of: (a) determining the at least one event in the discrete event simulation model; (b) retrieving the at least one code block associated with the at least one event; (c) compiling the at least one code block into an object file (OBJ) using a compiler; (d) linking the object file with at least one predetermined function in a simulation library (LIB); (e) compiling the object file and the at least one predetermined function into a customized dynamic link library (DLL); (f) loading the customized dynamic link library within a discrete event simulation program execution; (g) linking the customized dynamic link library to a simulation program associated to the system; and (h) executing at least one user-entered logic in high speed by integrating a just-in-time compiler embedded into the discrete event simulation model to allow dynamic generation of high speed code blocks associated with the at least one event, the at least one user-entered logic being defined as a set of user-entered text that refers to system states and future events lists including a list of pending activities, a history of previously executed events or a previous system state at a previous moment of execution; whereby each at least one event has at least one event type, k, and for each k, a custom section of code is encapsulated inside a single function and compiled to a memory location to define the at least one code block, which is dynamically shared in the simulation program or other simulation programs executed within a context of an existing code block or other code blocks in a serial or recursive manner.
地址 Berkeley CA US