123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <!DOCTYPE html>
- <html lang="eng">
- <head>
- <title>Webcomp Man Page</title>
- </head>
- <BODY><PRE>
- MAKEROM(1) User Commands MAKEROM(1)
- <B>NAME</B>
- webcomp - Compile files into C source code
- <B>SYNOPSIS</B>
- <B>webcomp [options] files ... >output.c</B>
- [<I>--files fileList</I>] [<I>--name structName</I>] [<I>--strip prefix</I>]
- <B>DESCRIPTION</B>
- To enable files to be accessed on embedded systems without a file sys-
- tem, the <B>webcomp </B>command converts arbitrary files into C code that can
- be compiled and linked into a program. This is useful for applications
- that must execute completely from ROM and not access a file system.
- This facility can also enhance security by preventing the modification
- of files.
- The MPR portable runtime provides routines which can then read these
- files much as you would read any file on disk.
- <B>OPTIONS</B>
- <B>--files fileList</B>
- Option to provide a list of files that should be converted. <B>--p</B>
- <B>strip </B>Specifies a prefix to remove from each of the compiled
- file names.
- <B>--name structName</B>
- Specifies the name of top level C structure that holds the con-
- verted files.
- <B>EXAMPLE</B>
- This example will create a list of web files and then convert these
- files into C structures in the file romFiles.c.
- find web -type f -print >fileList
- webcomp --files filelist >romFiles.c
- cc -o romFiles.o romFiles.c
- <B>REPORTING BUGS</B>
- Report bugs to <dev@embedthis.com>.
- <B>COPYRIGHT</B>
- Copyright (C) Embedthis Software.
- <B>SEE ALSO</B>
- makerom March 2014 MAKEROM(1)
- </PRE></BODY>
- </html>
|