home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / GNUC167.ZIP / LIMITS < prev    next >
Text File  |  1991-12-14  |  2KB  |  48 lines

  1.     The -g compiler option can not be used.  Future versions of o2obj may
  2. support symbolic debugging.
  3.  
  4.     The -pipe compiler option cannot be used.
  5.  
  6.     Gcc can not be used to link applications. Doing so causes abnormal
  7. termination of gcc.
  8.  
  9.     Collect must be used to gather a global constructor/destructor list
  10. for any C++ application which uses global objects.
  11.  
  12.         Sample usage:
  13.  
  14.             gcc -c part1.cc part2.cc part3.cc
  15.             collect -o cdlist.s part1.obj part2.obj part3.obj class.lib
  16.             as cdlist.s -o cdlist.o
  17.             o2obj cdlist.o
  18.             link386 part1 part2 part3 cdlist, app.exe,,class.lib gnulib.lib;
  19.  
  20.     All object files generated by o2obj specify a default library named
  21. libc.lib.
  22.  
  23.     O2obj inserts a reference to the symbol '_acrtused' if the symbol 'main'
  24. is referenced and the symbol '_acrtused is not.  This is to tell the linker
  25. to link in the C runtime start off code.
  26.  
  27.     Gcc will only recognize files with the suffix '.cc' as C++ source.
  28.  
  29.     All applications compiled by gcc MUST be linked with gnulib.lib.
  30.  
  31.  
  32.  
  33.     MS SDK Library Specific:
  34.  
  35.         The MS SDK runtime library uses return-pops-args convention and
  36.     API calls use caller-pops-args convention, so...
  37.  
  38.         The -mrtd compiler option MUST be used when an application uses
  39.     the C runtime library.
  40.  
  41.         The -mrtd compiler option MUST NOT be used when an application
  42.     uses API calls.
  43.  
  44.  
  45.         This is very limiting for PM programmers.  Perhaps a distributable
  46.     C runtime library can be assembled via user contributions.
  47.  
  48.