16 bit code for 186 processor
Pannaga Bhushan
bhushan@multitech.co.in
Thu Jan 10 05:42:00 GMT 2002
Dear Sir/Madam,
I am using bin utils 2.11.2, which is the latest
available. I wrote a simple hello world program and compiled with gcc using
the -S option to get the .s (assembly file). I inserted .code16 directive
in the line after the label main:
Then I assembled this with the command ----- gcc file_name.s
The a.out file that I get from this process gives segmentation fault error
and dumps the core.
What are the steps to get a code that can execute on 186 processor( that is
16 bit processor).
Hope the procedure is simple and also hope that I get a reply soon.
Thanx in advance,
Pannaga Bhushan
More information about the Gcc-help
mailing list