webcomp.txt 1.6 KB

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