Page 1 of 1

AGAIN! ABOUT PMODE IN FREEPASCAL

Posted: Sun Apr 04, 2004 12:00 am
by RodrigoFagner
HI, I AM JUST LEARNIN A PASCAL 32 BITS COMPILERS AND I AM TRYING TO UNDERSTAND HOW PASCAL 32BITS WORKS. IT´S POSSIBLE TO PUT A NEW SYSTEM UNIT! ONLY TO USE A 32BITS INSTRUCTIONS AND POINTERS AND STATEMENTS ! ? ? ?

WHEN I USE FPC XXX.PP -Cn OR GPC DDD.PAS -C IT GENERATES A "O" FILE, AND MY PROBLEM IS WITH LINKER! HOW DO I LINK THE "O" FILE TO A MSDOS EXE FILE !? ? ?
WHEN I DO THIS LIKE: LD XXX.O IT RETURN A ERROR WITH A SIMBOLS!

I DON´T WANT TO BORE ANYONE HERE WITH THIS STUPID QUESTIONS, BUT I AM LERNING AND YOU ARE MY ONLY RESOURCE!!! :-)

MANY TANKS

RODRIGO FAGNER!

RE:AGAIN! ABOUT PMODE IN FREEPASCAL

Posted: Sun Apr 04, 2004 12:00 am
by ASHLEY4
HI
Most people on here do not use freepascal,so you are better off asking here:

      http://www.friends-of-fpc.org/

ASHLEY4.

RE:I saw fpc and gnu pascal doe´s the same way! it put the f

Posted: Sun Apr 04, 2004 12:00 am
by RodrigoFagner
i am bored cuz my hole life i use bp7 and it is easy to use!
but ! you know ! ASHLEY4! :-) many tanks! if you know with GPC please help me?

;-)
RodrigoFagner

RE:I saw fpc and gnu pascal doe´s the same way! it put the f

Posted: Sun Apr 04, 2004 11:00 pm
by ASHLEY4
I only use ASM, "THE  LANGUAGE for MEN", the rest of the languages are for boys and girls.

ASHLEY4.

RE:I saw fpc and gnu pascal doe´s the same way! it put the f

Posted: Wed Apr 21, 2004 11:00 pm
by Anton
Well, i guess these men don't have anything else to do(!), but sit in front of the computer, whereas girls and boys have time for other things. :)
Anton.

damn straight

Posted: Wed Apr 21, 2004 11:00 pm
by jmpnop
In what other language can you mix data and code
in order to perform instructions not supported by the compiler?

RE:I saw fpc and gnu pascal doe´s the same way! it put the f

Posted: Wed Apr 21, 2004 11:00 pm
by uri
Your observation is correct - both GNU Pascal and FPC use a DOS extender. The reason is that both compilers output 32 bit code for execution in protected mode. DOS runs in real mode, so programs who need to run in a 32 bit environment have to switch the CPU to protected mode first. GO32v2 does exactly that.
In other words: If you tell the linker to turn your GPC/FPC object files into a DOS EXE, it has no choice but to put GO32 in front of your code.
If your goal is to write an operating system kernel in Pascal, I'd say: Don't bother with DOS. Link your code into a binary file (using "--oformat binary") and write a bootloader for that.

- uri