I have few scripts developed in TCL and Shell
I want to create a single executable by embedding these scripts into any high level language like C/C++ file. we know that TCL is a C library. What kind of interface files APIs are useful for achieving this?
system(...)
, or you could try translating them to C: sed: https://github.com/lhoursquentin/sed-bin awk: awk2c grep: I didn't find some translator tool, but grep uses PCRE , so you could use these. To have them in the executable, you could make a.tar(.gz) file from those scripts, embed it into the binary ( Embedding binary blobs using gcc mingw ), and load (and extract (with zlib, for example)) it at runtime, to a temporary directory.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.