I am using masm to develope the real mode assembly codes and produced .obj file
I like to also produce simple C code to utilize simple function like printf, fprintf. currently I am using VC 6.0. However, the obj file from the masm doens't seem link well with obj file from VC.
error link: segment reference in fixup ;unenable to produce COFF file output.
I guess the coff file output from VC is 32 bit whereas obj file from masm is OMF 16 bit and they don't match.
The question I have how do I compile for 16 bit C program which compatible with masm ? what compiler I should use? is VC which is 32 bit compiler for window OK for that purpose?
thanks
> is VC which is 32 bit compiler for window OK for that purpose?
No. you need a 16-bit C compiler. One of those:
- Digital Mars C++ (free)
- Open Watcom (free)
- Turbo C/Borland C v2 - v4.5
- MS VC++ 1.52
Digital Mars C++ is pretty MS compatible and is - if you don't have MS VC 1.52 - possibly the simplest solution.