Ignore:
Timestamp:
May 12, 2003, 12:48:43 PM (23 years ago)
Author:
zap
Message:

Started the work for re-designing the EMX C runtime library to not require
EMX.DLL. The new design is projected to be as follows:

  • all emx syscalls are replaced with the routines from the old sys.lib library which is now compilable in both a.out and OMF formats.
  • the sys.a library should be made replaceable and selectable by some gcc switch (e.g. -msyslib=emx would link with emx.a instead of sys.a which would give almost full backward compatibility with emx).
  • All C functions names were renamed to not contain the starting underscore (e.g. fopen and not _fopen). The underscored aliases will be added later with the c_alias library (which will be generated automatically from all public symbols of libc; any exported symbol that do not start with an underscore will be given an underscored alias unless such a symbol is already defined).

Also a lot of updates to the building system. It is now much faster (thanks
to Knut's suggestion of using ash's builtin echo).
Also re-wrote thunk1.asm and thunk2.asm to GAS format; this removes the need
for MASM and makes it possible to use 16-bit functions in a.out programs
without the need for EMX.DLL.
Also made a lot of small changes I don't remember now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/build.txt

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r122 r123  
    9595  'make help' in the module list section.
    9696
     97
     98
     99
    97100.TARGET - The name of target (e.g. executable or library file name without dir).
    98101  For example: .TARGET=myfile.exe
     
    100103.TKIND - (optional) The kind of target. It can consist of up to three
    101104  components, the first one defines the object file format (omf or aout,
    102   if not defined defaults to omf), the second defines the threadness
    103   (st or mt, defaults to st), third can be 'prof' to build in profiling mode.
    104   Example: .TKIND=omf st prof
     105  if not defined defaults to omf), the second
     106  profiling mode.
     107  Example: .TKIND=omf prof
    105108
    106109.TDEP - Dependencies for target (not built from a source file). For example,
     
    141144mklib.smak - this builder creates a library. It defines all rules required
    142145  for building all object files and then runs the librarian which binds all
    143   object files together in a single library.
     146  object files together in a single library. Besides, if the file format is
     147  a.out, it also defines a target called '$(.MODULE)@omf' (e.g. for module
     148  zzz it also defines a module called zzz@omf) which will build the OMF
     149  library from its a.out counterpart by using emxomf.
    144150
    145151Here is a simple example of a submakefile that will build a simple helloworld
     
    195201files from a single source file they are put under different output directories
    196202(e.g. single-threaded OMF object files go into $(OUT)/omf-st/ directory while
    197 multi-threaded a.out object files with profiling go into $(OUT)/aout-mt-prof/
     203multi-threaded a.out object files with profiling go into $(OUT)/aout-prof/
    198204directory). This way, you can have several targets that are built from the
    199205same source files with different compilation options.
Note: See TracChangeset for help on using the changeset viewer.