Internet of Things application online compiling method based on multi-user cache

The invention discloses an Internet of Things application online compiling method based on multi-user cache. The method comprises the steps that a developer writes an Internet of Things application code at a client and uploads the code to a compiling server; and the server compiles each source file...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: GUAN GAOYANG, LIU WENXIN, GAO YI, BU JIAJUN, ZHANG JIADONG, DONG WEI
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses an Internet of Things application online compiling method based on multi-user cache. The method comprises the steps that a developer writes an Internet of Things application code at a client and uploads the code to a compiling server; and the server compiles each source file in the application code; before compiling, firstly, a hash value of a file is calculated, and a target file corresponding to the hash value is searched in a database; if the target file exists, the file is copied to the current directory, and the next file is compiled; otherwise, the current file iscompiled, and the compiled file is stored into a memory, so that the target file can be reused in the subsequent compiling process. And after all the source files are compiled, a compiled result is returned to the client to finish compiling. 一种基于多用户缓存的物联网应用在线编译方法。步骤为:开发者首先在客户端编写物联网应用代码,并将代码上传至编译服务器。服务器对应用代码中的每一个源文件进行编译。在编译前,首先计算文件的哈希值,并在数据库中查找该哈希值对应的目标文件。若目标文件存在,则拷贝该文件到当前目录,并进行下一个文件的编译;否则,编译当前文件,并把编译后的文件存储到存储器中,以便后续编译过程复