<<>> <> <> <<>> DataCompile CEDAR 10.1 FOR INTERNAL XEROX USE ONLY DataCompile Binding data files into your programs Michael Plass Ó Copyright 1990, 1991, 1992 Xerox Corporation. All rights reserved. Abstract: An application frequently needs data from a file that is logically part of the application; DataCompile allows such data to be bound into the program, and yet read as a PFS file. Created by: Michael Plass Maintained by: Michael Plass Keywords: PFS, Compile, View XEROX Xerox Corporation Palo Alto Research Center 3333 Coyote Hill Road Palo Alto, California 94304 For Internal Xerox Use Only Introduction An application frequently needs data from a file that is logically part of the application; DataCompile allows such data to be bound into the program, and yet read as a PFS file. Commands DataCompileC outname { destination-directory | pattern }* % DataCompileC myfiles.c /myfiles/ *.datafile /myfiles/more/ other/*.tip % mako myfiles.c % Run myfiles.o % PMA /myfiles -compiled:/myfiles This creates a c program that contains the contents of all the files named by the patterns, along with their new pathnames and their create dates. When the c program is compiled and run, it will register the files with CompiledViewImpl. DataCompileMesa outname { destination-directory | pattern }* % DataCompileMesa myfiles.mesa /myfiles/ *.datafile /myfiles/more/ other/*.tip This creates a mesa program instead of a c program; you may want to do this because, for instance, it's simpler to bind it into a config. You may encounter a limit on the size of the file you can treat this way.