CN102591697B - Perform user space formula method and use its computer system - Google Patents

Perform user space formula method and use its computer system Download PDF

Info

Publication number
CN102591697B
CN102591697B CN201110020737.6A CN201110020737A CN102591697B CN 102591697 B CN102591697 B CN 102591697B CN 201110020737 A CN201110020737 A CN 201110020737A CN 102591697 B CN102591697 B CN 102591697B
Authority
CN
China
Prior art keywords
formula
archives economy
function
function storehouse
storehouse
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110020737.6A
Other languages
Chinese (zh)
Other versions
CN102591697A (en
Inventor
林纬政
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Technical Steel Technology Co ltd
Original Assignee
Giga Byte Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Giga Byte Technology Co Ltd filed Critical Giga Byte Technology Co Ltd
Priority to CN201110020737.6A priority Critical patent/CN102591697B/en
Publication of CN102591697A publication Critical patent/CN102591697A/en
Application granted granted Critical
Publication of CN102591697B publication Critical patent/CN102591697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A kind of computer system performing user space formula method and use it.User space comprises the first formula and the second formula that different compiler compiles.First formula can provide archives economy module and the second formula to link up by core, to be linked to third party's function storehouse through the second formula.At this, the second formula registers virtual archives economy through archives economy function storehouse to archives economy module, and the first formula is able to through virtual archives economy transfer operation request to the second formula.And the second formula is linked to third party's function storehouse according to operation requests, uses and perform function corresponding in third party's function storehouse.Afterwards, send back through virtual archives economy should to the first formula for the second formula.

Description

Perform user space formula method and use its computer system
[technical field]
The invention relates to the using method of a kind of user space formula, and relate to especially and a kind ofly link the method for the execution user space formula in the function storehouse that different compiler compiles and use its computer system.
[background technology]
In computer science, function storehouse (library) is the SUB set for developing software.Function storehouse is the source code providing service to other formulas, but not independent routine.Function storehouse link (link) then refers to and one or more function storehouse is included in formula.And different compiler the dynamic function storehouse that compiles out, because addressing mode is different, just cannot directly link in the formula therefore compiled at different compiler.
Such as, the general compiler of the general Linux kernel heart is that GNU compiler set (GNUCompilerCollection, under be called GCC compiler) loads formula with the GLIBC of GNU.And android system is software platform based on the Linux kernel heart and operating system, it is the loading formula adopting BIONIC compiler and the BIONIC researched and developed voluntarily.And the loading formula compiled by BIONIC compiler cannot upgrade the dynamic function storehouse memory address that GCC compiler compiles when loading, the dynamic function storehouse of Linux is originally caused to link, all formulas all must be transmitted through BIONIC compiler and recompilate, correctly to link.But when not having source code, BIONIC compiler cannot recompilate.
[summary of the invention]
The invention provides the method for a kind of user of execution space formula and use its computer system, under situation about not recompilating, the function storehouse that different compiler compiles can be linked.
Specifically, the present invention proposes a kind of method performing user space formula, is applicable to computer system.This computer system comprises user space and core, and user space comprises the first formula, and wherein the first formula is linked to the first standard function storehouse, and the first formula and the first standard function storehouse compiled by the first compiler.At this, second formula and third party's function storehouse are provided in user space, wherein the second formula is linked to the second standard function storehouse, and the second formula and the second standard function storehouse compiled by the second compiler, and third party's function storehouse depends upon the second standard function storehouse.First formula provides archives economy module and the second formula to link up by core, and to be linked to third party's function storehouse through the second formula, wherein archives economy module has corresponding archives economy function storehouse in user space.And the step that the first formula is linked to third party's function storehouse through the second formula comprises: the second formula registers virtual archives economy through archives economy function storehouse to archives economy module; First formula is through virtual archives economy transfer operation request to the second formula; Second formula is linked to third party's function storehouse according to operation requests, uses and performs function corresponding in third party's function storehouse; Second formula sends back through virtual archives economy should to the first formula.
In one of the present invention embodiment, the step that above-mentioned second formula registers virtual archives economy through archives economy function storehouse to archives economy module comprises: the registration function in the second formula calling archives economy function storehouse, to transmit the function index in archives economy path and the second standard function storehouse; Registration function transmits to core the request of unlatching through the unlatching function in the second standard function storehouse; Core, according to the request of opening, opens virtual bench, makes virtual bench transmit filec descriptor to the second formula; Second formula transmits to core the request of foundation through the control function in the second standard function storehouse, to set up virtual archives economy according to archives economy path.
In one of the present invention embodiment, in above-mentioned second formula through archives economy function storehouse to after archives economy module registers the step of virtual archives economy, second formula can call out the wait function in archives economy function storehouse, whether receives operation requests with the virtual archives economy of poll.
In one of the present invention embodiment, third party's function storehouse is linked to according to operation requests in above-mentioned second formula, before using the step performing function corresponding in third party's function storehouse, if wait for that function is polled to virtual archives economy when receiving operation requests, the process function in calling archives economy function storehouse carrys out parse operation request.
In one of the present invention embodiment, above-mentioned first formula comprises through the step of virtual archives economy transfer operation request to the second formula: the first formula function of calling out the first standard function storehouse with through virtual archives economy transfer operation request to archives economy module, wherein operation requests comprises archives economy path; Archives economy module is according to archives economy path transfer operation request to the second formula.
In one of the present invention embodiment, above-mentioned archives economy module is user space archives economy (FilesysteminUserspace, FUSE) module.In addition, the form of operation requests is extend markup language (ExtensibleMarkupLanguage, XML).
In addition, the present invention proposes a kind of computer system, comprises core and user space.Core provides an archives economy module.User space comprises corresponding to the archives economy function storehouse of archives economy module, the first formula, the first standard function storehouse, the second formula, the second standard function storehouse and third party's function storehouse.Wherein, the first formula is linked to the first standard function storehouse, and it all compiled by the first compiler; And the second formula is linked to the second standard function storehouse, it all compiled by the second compiler; Third party's function storehouse depends upon the second standard function storehouse.Second formula registers virtual archives economy through archives economy function storehouse to archives economy module, and the first formula is able to through virtual archives economy transfer operation request to the second formula.And the second formula is linked to third party's function storehouse according to operation requests, uses and perform function corresponding in third party's function storehouse.Afterwards, send back through virtual archives economy should to the first formula for the second formula.
The present invention more proposes a kind of readable in computer programmed recording medium, in order to store user space formula and to be applicable to be loaded into computer system to perform it.Wherein, user space formula comprises the first formula and the second formula, and computer system comprises user space and core.And user space comprises the first formula, wherein the first formula is linked to the first standard function storehouse, and the first formula and the first standard function storehouse compiled by the first compiler.And the method performing user space formula comprises: provide the second formula and third party's function storehouse in user space, wherein the second formula is linked to the second standard function storehouse, and the second formula and the second standard function storehouse compiled by the second compiler, and third party's function storehouse depends upon the second standard function storehouse.First formula can provide archives economy module and the second formula to link up by core, and to be linked to third party's function storehouse through the second formula, wherein archives economy module has corresponding archives economy function storehouse in user space.And the step that the first formula is linked to third party's function storehouse through the second formula comprises: the second formula registers virtual archives economy through archives economy function storehouse to archives economy module; First formula is through virtual archives economy transfer operation request to the second formula; Second formula is linked to third party's function storehouse according to operation requests, uses and performs function corresponding in third party's function storehouse; Second formula transmits one through virtual archives economy and responds to the first formula.
Based on above-mentioned, the first formula that the present invention makes different compiler in user space compile through the archives economy module that core provides and the second formula can be linked up, and then utilize this communicative mode to allow the first formula call out the second formula, and be linked to third party's function storehouse through the second formula.Accordingly, do not recompilating under third party's function storehouse, the first formula, through the help of the second formula, just can call out third party's function storehouse.
For the above-mentioned feature and advantage of the present invention can be become apparent, special embodiment below, and coordinate institute's accompanying drawings to be described in detail below.
[accompanying drawing explanation]
Fig. 1 is the schematic diagram of a kind of computer system according to first embodiment of the invention.
Fig. 2 is a kind of method flow diagram performing user space formula according to first embodiment of the invention.
Fig. 3 A ~ Fig. 3 C is a kind of schematic diagram performing user space formula method according to second embodiment of the invention.
Fig. 4 is the schematic diagram of a kind of computer system according to third embodiment of the invention.
Fig. 5 is the schematic diagram of a kind of XML format according to third embodiment of the invention.
[embodiment]
The function storehouse that different compiler compiles, because addressing mode is different, if the formula that therefore the first compiler compiles wants to be linked to the function storehouse that the second compiler compiles, then wants first recompilate above-mentioned function storehouse through the first compiler.But, when there is no source code, and cannot recompilate above-mentioned function storehouse.For this reason, the present invention proposes the method for a kind of user of execution space formula and uses its computer system, under situation about not recompilating, can link the function storehouse that different compiler compiles.In order to make content of the present invention more clear, below especially exemplified by the example that embodiment can be implemented really according to this as the present invention.
First embodiment
Fig. 1 is the schematic diagram of a kind of computer system according to first embodiment of the invention.Please refer to Fig. 1, computer system 100 has user space 110 and core 150.Computer system 100 is such as embedded system.
There is the first formula 111, second formula 121 in user space 110.Wherein, the first formula 111 is linked to the first standard function storehouse 113, first formula 111 and the first standard function storehouse 113 compiled by the first compiler.Second formula 121 is linked to the second standard function storehouse 123, second formula 121 and the second 123, standard function storehouse compiled by the second compiler.
And the third party's function storehouse 141 such as provided by manufacturer more can be provided in user space 110, can control hardware in computer system 100 and export interface, it depends upon the second standard function storehouse 123.
Core 150 provides archives economy module 151, make the first formula 111 by core 150 provide archives economy module 151 and the second formula 121 to link up, and then utilize the second formula 121 to be linked to third party's function storehouse 141.This is because the first standard function storehouse 113 and the second standard function storehouse 123 incompatible, so the first formula 111 directly cannot be linked to third party's function storehouse 141 to the function using it to provide.In addition, in user space 110, more there is the archives economy function storehouse 131 corresponding to archives economy module 151 that core 150 provides in I.
Archives economy module 151 is such as user space archives economy (FilesysteminUserspace, FUSE) module, it provides developer one develops the framework of archives economy in linux system, allow developer can on user space 110 fast Development and test archives economy.And FUSE framework mainly contains two instruments, one is the archives economy module 151 in core 150, and another is then framework 110 archives economy function storehouses 131 in order to provide the relevant function of archives economy module 151 to use to developer in user space.
Second formula 121 can register virtual archives economy 153 through archives economy function storehouse 131 to archives economy module 151, makes the first formula 111 be utilized virtual archives economy 153 and through the second formula 121 to use third party's function storehouse 141.
At this, utilize the mode of system calling (SystemCall), the first standard function storehouse 113 that different compiler can be allowed to compile and the second standard function storehouse 123 are to use the archives economy module 151 of core 150.System calling provides the interface between formula in user space 110 and core 150.Most systems interactive operation demand performs in core 150, such as equipment operating or not reversed return type communication.And the space of operating system can be divided into user space 110 and core 150, they need different execute permission power.And system calling operates in core 150.
Below above-mentioned computer system 100 of namely arranging in pairs or groups describes each step of method performing user space formula in detail.Fig. 2 is a kind of method flow diagram performing user space formula according to first embodiment of the invention.Referring to Fig. 1 and Fig. 2, in step S205, the second formula 121 registers virtual archives economy 153 through archives economy function storehouse 131 to archives economy module 151.
Specifically, the second formula 121 can call out the registration function in archives economy function storehouse 131, transmits the function index in archives economy path and the second standard function storehouse 123 through registration function.Then, register function and transmit to core 150 request of unlatching through the unlatching function in the second standard function storehouse 123 again.When core 150 receives unlatching request, according to opening the virtual bench of asking file opening system module 151 to provide, utilize virtual bench transmission filec descriptor (filedescriptor) to the second formula 121.Now, the second formula 121 can transmit to core 150 request of foundation through the control function in the second standard function storehouse 123, to set up virtual archives economy 153 according to virtual bench path.
After the second formula 121 has been registered, in step S210, the first formula 111 through virtual archives economy 153 transfer operation request to the second formula 121, in order to notify the second formula 121 its for use third party's function storehouse 141.Operation requests comprises the archives economy path of the second formula 121.Such as, the first formula 111 function of calling out the first standard function storehouse 111 with through virtual archives economy 153 transfer operation request to archives economy module 151.Afterwards, archives economy module 151 is according to archives economy path transfer operation request to the second formula 121.
After the second formula 121 receives operation requests, as shown in step S215, the second formula 121 is linked to third party's function storehouse 141 according to operation requests, uses and performs function corresponding in third party's function storehouse 141.Specifically, the second formula 121 is after having registered to archives economy module 151, and it can call out the wait function in archives economy function storehouse 131, whether receives operation requests with the virtual archives economy 153 of poll.If the second formula 121 is polled to virtual archives economy 153 and receives operation requests, then the process function of calling out archives economy function storehouse 131 carrys out parse operation request, to be linked to third party's function storehouse 141 according to operation requests.
Afterwards, in step S220, the second formula 121 sends back through virtual archives economy 153 should to the first formula 111.Such as, the filec descriptor (FileDescriptor) that executable operations request obtains through core 150 by the second formula 121 is back to the first formula 111.
Second embodiment
Fig. 3 A ~ Fig. 3 C is a kind of schematic diagram performing user space formula method according to second embodiment of the invention.Wherein, Fig. 3 A is the schematic diagram registering virtual archives economy flow process, and Fig. 3 B and Fig. 3 C is the schematic diagram opening virtual archives economy flow process.
The general compiler of the general Linux kernel heart is that GNU compiler set (GNUCompilerCollection, under be called GCC compiler) loads formula with the GLIBC of GNU.And android system is software platform based on the Linux kernel heart and operating system, it is the loading formula adopting BIONIC compiler and the BIONIC researched and developed voluntarily.
In the present embodiment, the core 304 of android system provides FUSE module 305, FUSE module 305 in user space, have corresponding FUSE function storehouse 302.User space comprises the first formula 306 and the second formula 301.The formula that first formula 306 compiles for BIONIC compiler, it can be linked to the BIONIC function storehouse 307 that BIONIC compiler compiles.The formula that second formula 301 compiles for GCC compiler, it can be linked to the GLIBC function storehouse 303 that GCC compiler compiles.
At this, the second formula 301 can register a virtual archives economy to the FUSE module 305 of core 304.Please refer to Fig. 3 A, as shown in step S311, the registration function " fuse_register " that the second formula 301 can call out FUSE function storehouse 302 is registered to FUSE module 305.And the second formula 301 is when time call registration function " fuse_register ", the function index (such as, vfs_open, vfs_read and vfs_close etc.) that an archives economy path (such as under the root directory face "/root/FS2 ") operates with its archives can be imported into.Then, in step S313, registration function " fuse_register " can open through the unlatching function " open " in GLIBC function storehouse 303 virtual bench (such as "/dev/fuse ") that FUSE module 305 provides.
Afterwards, the unlatching function " open " in GLIBC function storehouse 303 can use system calling (systemcall) " syscall_open " to send the request of unlatching, as shown in step S315 to core 304.Then, core 304 according to be belong to the virtual bench that FUSE module 305 provides for the archives opened, so transfer to the unlatching function " fuse_open " of FUSE module 305 to process unlatching request " syscall_open ", its result by passback filec descriptor " fd " to second formula 301 in user space, represent the information of file opening, as step S319.
Then, in step S321, the second formula 301 can send the request of setting up " CREAT " through the filec descriptor " fd " of control function " ioctl " to the virtual bench of the FUSE module 305 opened in GLIBC function storehouse 303.Then, the control function " ioctl " in GLIBC function storehouse 303 can use system calling " syscall_ioctl " to send the request of foundation, as shown in step S323 to core 304.Afterwards, core 304 is the virtual bench belonging to FUSE module 305 according to opened filec descriptor " fd ", and transfers to the control function " fuse_ioctl " of FUSE module 305 to process, as shown in step S325 foundation request.
Then, in step S327, the control function " fuse_ioctl " of FUSE module 305 according to the numbering of parameter " CREATE " and archives economy path ("/root/GmailFS " as face under the root directory), can positively set up the tree structure of virtual archives economy.Afterwards, passback success or not, as shown in step S329.
Then, the second formula 301 can be called out the wait function " fuse_wait_req " in FUSE function storehouse 302 constantly and used and wait for that another formula is to operate virtual archives economy.Such as, the operation requests receiving any formula whether is had, as shown in step S331 ~ step S339 by wait function " fuse_wait_req " poll (polling) virtual archives economy.In step S331, the second formula 301 calls out the wait function " fuse_wait_req " in FUSE function storehouse 302.Then, in step S333, wait for that function " fuse_wait_req " can send the request waited for " wait_req " through the control function " ioctl " in GLIBC function storehouse 303 according to filec descriptor " fd ".Afterwards, the control function " ioctl " in GLIBC function storehouse 303 can use system calling " syscall_ioctl ", as shown in step S335 to core 304.Then, system calling " syscall_ioctl " transfers to the wait function " fuse_wait_req " of FUSE module 305 to process by core 304.
Now, can see on archives economy the second formula 301 through FUSE module 305 the virtual archives economy set up out.Accordingly, other formulas just can operate registered virtual archives economy through FUSE module 305.
Please refer to Fig. 3 B, the first formula 306 opens virtual archives economy through FUSE module 305.In step S341, the unlatching function " open " that the first formula 306 first can call out BIONIC function storehouse 307 carrys out transfer operation request (operation requests is such as file opening), and the archives economy path imported into for opening is parameter.Then, as shown in step S343, the unlatching function " open " in BIONIC function storehouse 307 can adopt system calling " syscall_open " that core 304 is passed in archives economy path.Then, core 304 receives operation requirements, can judge that the archives in its archives economy path are the File Formats registered to FUSE module 305, therefore FUSE module 305 is transferred to process the action of file opening, so the unlatching function " fuse_req_open " of calling FUSE module 305, as shown in step S345.
The archival location that FUSE module 305 receives operation requests is the virtual archives economy belonging to the second formula 301, so utilize forwarding function " fuse_redirect_req " operation requests to be transmitted to the second formula 301, as shown in step S347.Now, FUSE module 305 can terminate the wait of the step S339 in Fig. 3 A.That is, when wait for function " fuse_wait_req " be polled to virtual archives economy receive the operation requests of the first formula 306 time, the process function " fuse_proce_req " calling out FUSE function storehouse 302 carrys out parse operation request.Further, function " fuse_wait_resp " is responded in FUSE module 305 Call Waiting, as shown in step S349.Afterwards, FUSE module 305 by passback filec descriptor " fd " to the first formula 306, as shown in step S351.
Then please refer to Fig. 3 C, in step S353, call treatment function " fuse_proce_req " can be carried out according to the result of the function " fuse_wait_req " that awaits a response in FUSE function storehouse 302, its operation requests is file opening, the function index that FUSE function storehouse 302 operates according to previous the registered archives of the second formula 301 calls out corresponding unlatching function " vfs_open ", its result by passback filec descriptor " fd ", as shown in step S357, accordingly just can file opening.
Afterwards, in step S359, FUSE function storehouse 302 can call response function " fuse_resp_req ".Further, in step S361, the control function " ioctl " in calling GLIBC function storehouse 303.Then, in step S363, the control function " ioctl " in GLIBC function storehouse 303 can adopt system calling " syscall_ioctl " that the filec descriptor opening function " vfs_open " is passed to core 304.Then, in step S365, the control function " fuse_ioctl " of calling FUSE module 305.Now, FUSE module 305 can terminate the wait of the step S349 in Fig. 3 B.Finally, the information of file opening is returned by core 304.
That is, the second formula 301 registers its archives economy provided to FUSE module 305.Accordingly, first formula 306 just can open the virtual archives economy that (open), reading (read), write (write), control (ioctl) and closedown (close) second formula 301 are set up through FUSE module 305, its all process finally all can call out the function index (such as, vfs_open, vfs_read and vfs_close etc.) of the second formula 301 at earlier registration.
3rd embodiment
Fig. 4 is the schematic diagram of a kind of computer system according to third embodiment of the invention.Please refer to Fig. 4, computer system 400 has user space 410 and core 450.There is the first formula 411, second formula 421 in user space 410.The formula that first formula 411 compiles for BIONIC compiler, it can be linked to the BIONIC function storehouse 413 that BIONIC compiler compiles.The formula that second formula 421 compiles for GCC compiler, it can be linked to the GLIBC function storehouse 423 that GCC compiler compiles.
And in user space 410, more can comprise the FUSE function storehouse 431 corresponding to FUSE module 451 and extend markup language (ExtensibleMarkupLanguage, an XML) function storehouse 433 that the third party's function storehouse 441 depending upon GLIBC function storehouse 423, the core 450 that are such as provided by manufacturer provide.
In computer system 400, the XML format of custom a kind of FUSE remote procedure call request (FUSE_RPCQ), it comprises called out function library name, function title, parameter types, parameter data.Fig. 5 is the schematic diagram of a kind of XML format according to third embodiment of the invention.Please refer to Fig. 5, the root label of XML is <FuseRpcq>, and it represents the beginning of file.The attribute " name " of label " Library " is used for defining the function library name called out; The attribute " name " of label " Function " is used for defining the function title of calling out; The attribute " type " of label " Param " is used for defining the parameter types of calling function, and attribute " name " is used for defined parameters title.At this, suppose that the function library name in third party's function storehouse 441 is called " libgbt_display.so ".And in this XML file, function " clear_screen " be used for removing screen picture, function " show_image " is used for Showing Picture, and the parameter of function " show_image " contain Show Picture position, size and file route.
Return Fig. 4, the second formula 421 first can register virtual archives economy 453 to FUSE module 451.Afterwards, first formula 411 open FUSE module 451 the virtual archives economy set up out, and the first formula carrys out executive system calling through the control function " ioctl " in BIONIC function storehouse 413 again, and XML file " FuseRpcq " is used as parameter is sent to FUSE module 451, then the first formula 411 just waits for the response of FUSE module 451.And FUSE module 451 is after the request receiving the first formula 411, Forward-reques gives the second formula 421.Now, second formula 421 can go the process function of calling out FUSE function storehouse 431 also to carry out analyzing XML file " FuseRpcq " according to XML function storehouse 433, uses according to the function library name dynamic link in XML file " FuseRpcq " to third party's function storehouse 441 to call out function " clear_screen " and calling function " show_image " in third party's function storehouse 441.Afterwards, the second formula 421 can return response to the first formula 411.First formula 411 just can system calling performed by finishing control function " ioctl " after receiving response.
Above mode, the first formula 411 can call out the function storehouse that the formula that cannot compile with BIONIC links smoothly, and simplifies source code size, call flow is become XML file and exchanges.Further, multiple formula can simultaneously between use virtual archives economy 453.
In addition, the form of computer program product (such as: software, firmware etc.) above-mentioned all embodiments can also be realized, and utilize readable in computer programmed recording medium (such as: laser disc, hard disc, memory body etc.) to store user space formula, perform it in order to computer system, and complete in the mode of automatic electronic.Specifically, readable in computer programmed recording medium is in order to store user space formula to be loaded into computer system to perform it.Wherein, user space formula comprises the first formula and the second formula, and computer system comprises user space and core.And user space comprises the first formula, wherein the first formula is linked to the first standard function storehouse, and the first formula and the first standard function storehouse compiled by the first compiler.And the method performing user space formula comprises: provide the second formula and third party's function storehouse in user space, wherein the second formula is linked to the second standard function storehouse, and the second formula and the second standard function storehouse compiled by the second compiler, and third party's function storehouse depends upon the second standard function storehouse.First formula can provide archives economy module and the second formula to link up by core, and to be linked to third party's function storehouse through the second formula, wherein archives economy module has corresponding archives economy function storehouse in user space.First formula is linked to the step in third party's function storehouse then as the step S205 ~ S220 of above-mentioned first embodiment through the second formula, therefore, do not repeat them here.
In sum, in above-described embodiment, the first formula that the archives economy module provided through core makes different compiler in user space compile and the second formula can be linked up, and then utilize this communicative mode to allow the first formula call out the second formula, and be linked to third party's function storehouse through the second formula.Accordingly, do not recompilating under third party's function storehouse, the first formula, through the help of the second formula, just can call out third party's function storehouse.Further, without the need to revising core, and then keeping system is stablized, and also can reduce cost of development.

Claims (9)

1. one kind performs the method for user space formula, be applicable to a computer system, it is characterized in that, this computer system comprises a user space and a core, this user space comprises one first formula, wherein this first formula is linked to one first standard function storehouse, and this first formula and this first standard function storehouse compiled by one first compiler, and the method comprises:
One second formula and third party's function storehouse are provided in this user space, wherein this second formula is linked to one second standard function storehouse, and this second formula and this second standard function storehouse compiled by one second compiler, and this third party's function storehouse depends upon this second standard function storehouse;
This first formula provides an archives economy module and this second formula to link up by this core, to be linked to this third party's function storehouse through this second formula, wherein this archives economy module has a corresponding archives economy function storehouse in this user space, and the step that this first formula is linked to this third party's function storehouse through this second formula comprises:
This second formula registers a virtual archives economy through this archives economy function storehouse to this archives economy module;
This first formula transmits an operation requests to this second formula through this virtual archives economy;
This second formula is linked to this third party's function storehouse according to this operation requests, uses and performs function corresponding in this third party's function storehouse; And
This second formula transmits one through this virtual archives economy and responds to this first formula.
2. the method performing user space formula as claimed in claim 1, it is characterized in that, the step that wherein this second formula registers this virtual archives economy through this archives economy function storehouse to this archives economy module comprises:
This second formula calls out a registration function in this archives economy function storehouse, to transmit the function index in an archives economy path and this second standard function storehouse;
This registration function is opened function through one of this second standard function storehouse and is transmitted a unlatching request to this core;
This core is asked according to this unlatching, opens a virtual bench, makes this virtual bench transmit a filec descriptor to this second formula;
This second formula controls function through one of this second standard function storehouse and transmits a foundation request, to set up this virtual archives economy according to this archives economy path to this core.
3. the as claimed in claim 1 method performing user space formula, is characterized in that, wherein in this second formula through this archives economy function storehouse to after this archives economy module registers the step of this virtual archives economy, more comprise:
This second formula is called out one of this archives economy function storehouse and is waited for function, whether receives this operation requests with this virtual archives economy of poll.
4. the method performing user space formula as claimed in claim 3, is characterized in that, be wherein linked to this third party's function storehouse in this second formula according to this operation requests, before using the step performing function corresponding in this third party's function storehouse, more comprises:
If this wait function is polled to this virtual archives economy when receiving this operation requests, call out a process function in this archives economy function storehouse to resolve this operation requests.
5. the as claimed in claim 1 method performing user space formula, is characterized in that, wherein this first formula transmits this operation requests to the step of this second formula through this virtual archives economy and comprises:
This first formula calls out the function in this first standard function storehouse to transmit this operation requests to this archives economy module through this virtual archives economy, and wherein this operation requests comprises an archives economy path; And
This archives economy module transmits this operation requests to this second formula according to this archives economy path.
6. the method performing user space formula as claimed in claim 1, it is characterized in that, wherein this archives economy module is user space archives economy module.
7. the method performing user space formula as claimed in claim 1, it is characterized in that, wherein the form of this operation requests is extend markup language (ExtensibleMarkupLanguage, XML).
8. a computer system, is characterized in that, comprising:
One core, comprising:
One archives economy module; And
One user space, comprising:
One archives economy function storehouse, corresponding to this archives economy module;
One first formula, is linked to one first standard function storehouse, and wherein this first formula and this first standard function storehouse compiled by one first compiler;
One second formula, is linked to one second standard function storehouse, and wherein this second formula and this second standard function storehouse compiled by one second compiler; And
One third party's function storehouse, depends upon this second standard function storehouse;
Wherein, this second formula registers a virtual archives economy through this archives economy function storehouse to this archives economy module, makes this first formula be able to transmit an operation requests to this second formula through this virtual archives economy; And this second formula is linked to this third party's function storehouse according to this operation requests, uses and perform function corresponding in this third party's function storehouse; Afterwards, this second formula transmits a response to this first formula through this virtual archives economy.
9. computer system as claimed in claim 8, it is characterized in that, wherein the form of this operation requests is extend markup language (ExtensibleMarkupLanguage, XML).
CN201110020737.6A 2011-01-10 2011-01-10 Perform user space formula method and use its computer system Active CN102591697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110020737.6A CN102591697B (en) 2011-01-10 2011-01-10 Perform user space formula method and use its computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110020737.6A CN102591697B (en) 2011-01-10 2011-01-10 Perform user space formula method and use its computer system

Publications (2)

Publication Number Publication Date
CN102591697A CN102591697A (en) 2012-07-18
CN102591697B true CN102591697B (en) 2016-04-13

Family

ID=46480409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110020737.6A Active CN102591697B (en) 2011-01-10 2011-01-10 Perform user space formula method and use its computer system

Country Status (1)

Country Link
CN (1) CN102591697B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544150B (en) * 2012-07-10 2016-03-09 腾讯科技(深圳)有限公司 For browser of mobile terminal provides the method and system of recommendation information

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7080370B1 (en) * 1999-11-05 2006-07-18 Sun Microsystems, Inc. Method and apparatus for compiling source programs using one or more libraries
CN101551747A (en) * 2009-04-09 2009-10-07 怯肇乾 Software system configuring tool of ARM series microprocessor

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519951B2 (en) * 2003-09-30 2009-04-14 International Business Machines Corporation Multi-attribute dynamic link library packaging
TWI306215B (en) * 2005-04-29 2009-02-11 Ind Tech Res Inst Method and corresponding apparatus for compiling high-level languages into specific processor architectures
US8122439B2 (en) * 2007-08-09 2012-02-21 International Business Machines Corporation Method and computer program product for dynamically and precisely discovering deliquent memory operations

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7080370B1 (en) * 1999-11-05 2006-07-18 Sun Microsystems, Inc. Method and apparatus for compiling source programs using one or more libraries
CN101551747A (en) * 2009-04-09 2009-10-07 怯肇乾 Software system configuring tool of ARM series microprocessor

Also Published As

Publication number Publication date
CN102591697A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
US10324711B2 (en) System and method for the data management in the interaction between machines
CN112579097B (en) Software project construction method and device, storage medium and electronic equipment
CN111488151B (en) Page interaction method and device among Android modules
CN102395950A (en) Communicating with data storage systems
CN109460912B (en) Data processing method, data processing device, storage medium and electronic equipment
Gui et al. Toward architecture-based context-aware deployment and adaptation
CN110096685A (en) A kind of device identification generation method and device
CN102742303A (en) Message based mobile object with native PIM integration
US8352492B2 (en) Retrieval of metadata for peripheral devices
CN112132530B (en) Visual dynamic flow arranging method and system
CN103729189A (en) Broadcast protocol conversion method, system and terminal based on LUA
CN110231980A (en) Processing method, device and the transaction processor of distributed transaction
WO2018004020A1 (en) Device and method for verifying matching of simultaneous edits for markup language-based document
CN113658591B (en) Voice interaction adaptation system for intelligent home
CN113535326B (en) Calculation flow scheduling system based on high-throughput sequencing data
CN102591697B (en) Perform user space formula method and use its computer system
CN116595086B (en) Method and system for realizing spatial data service based on plug-in
Herbold et al. Combining usage-based and model-based testing for service-oriented architectures in the industrial practice
CN108804236B (en) AIDL file sharing method and system
Nikulina et al. Method of converting the monolithic architecture of a Front-End application to microfrontends
TWI408605B (en) Method for executing process in user space and computer system using the same and recording medium
CN109086200A (en) A kind of validity test frame based on the modification of Android virtual machine
CN112416427B (en) Method and device for issuing module management package, electronic equipment and storage medium
CN109901826A (en) For the data processing method of java applet, device and electronic equipment
Shi et al. Why and how to use phonelab

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230414

Address after: 7th Floor, No. 6 Baoqiang Road, Xindian District, Xinbei City, Taipei County, Taiwan, China, China

Patentee after: Technical Steel Technology Co.,Ltd.

Address before: Taipei, Taiwan, China store new city, Bao Qiang Road, No. 6

Patentee before: GIGA-BYTE TECHNOLOGY Co.,Ltd.