webcomp.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html lang="eng">
  3. <head>
  4. <title>Webcomp Man Page</title>
  5. </head>
  6. <BODY><PRE>
  7. MAKEROM(1) User Commands MAKEROM(1)
  8. <B>NAME</B>
  9. webcomp - Compile files into C source code
  10. <B>SYNOPSIS</B>
  11. <B>webcomp [options] files ... &gt;output.c</B>
  12. [<I>--files fileList</I>] [<I>--name structName</I>] [<I>--strip prefix</I>]
  13. <B>DESCRIPTION</B>
  14. To enable files to be accessed on embedded systems without a file sys-
  15. tem, the <B>webcomp </B>command converts arbitrary files into C code that can
  16. be compiled and linked into a program. This is useful for applications
  17. that must execute completely from ROM and not access a file system.
  18. This facility can also enhance security by preventing the modification
  19. of files.
  20. The MPR portable runtime provides routines which can then read these
  21. files much as you would read any file on disk.
  22. <B>OPTIONS</B>
  23. <B>--files fileList</B>
  24. Option to provide a list of files that should be converted. <B>--p</B>
  25. <B>strip </B>Specifies a prefix to remove from each of the compiled
  26. file names.
  27. <B>--name structName</B>
  28. Specifies the name of top level C structure that holds the con-
  29. verted files.
  30. <B>EXAMPLE</B>
  31. This example will create a list of web files and then convert these
  32. files into C structures in the file romFiles.c.
  33. find web -type f -print &gt;fileList
  34. webcomp --files filelist &gt;romFiles.c
  35. cc -o romFiles.o romFiles.c
  36. <B>REPORTING BUGS</B>
  37. Report bugs to &lt;dev@embedthis.com&gt;.
  38. <B>COPYRIGHT</B>
  39. Copyright (C) Embedthis Software.
  40. <B>SEE ALSO</B>
  41. makerom March 2014 MAKEROM(1)
  42. </PRE></BODY>
  43. </html>