Pascal Problems

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
System123
Member
Member
Posts: 196
Joined: Mon Jul 07, 2008 1:25 am

Pascal Problems

Post by System123 »

I am new to the world of OS Development and I recently decided to try create my first useful OS. I have created a very simple command line Assembler OS but I wanted to do something bigger and better.

So I decided that I would use Pascal because I already know Delphi so Pascal will be a lot easier to learn than C. The only problem is I cannot find a good tutorial or examples programmed in Pascal. And the one I got off the osdev wiki does not seem to work. Everything compiles fine but when I try link the asm and pas files I get pages of errors.

Please can someone point me in the right direction.
Gizmic OS
Currently - Busy with FAT12 driver and VFS
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: Pascal Problems

Post by piranha »

The wiki has a page, -> here <-. EDIT: Oops, I didn't see that sentence that id didn't work.

I think that inflater was or is doing an OS in pascal, maybe you want to contact him?

-JL
Last edited by piranha on Mon Jul 07, 2008 10:53 pm, edited 1 time in total.
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
System123
Member
Member
Posts: 196
Joined: Mon Jul 07, 2008 1:25 am

Re: Pascal Problems

Post by System123 »

That is the one that will not link. It compiles perfectly.
Gizmic OS
Currently - Busy with FAT12 driver and VFS
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

Re: Pascal Problems

Post by Adek336 »

Tell us what toolchain you're using and some error messages; perhaps we will be able to solve the problem.
System123
Member
Member
Posts: 196
Joined: Mon Jul 07, 2008 1:25 am

Re: Pascal Problems

Post by System123 »

I am using nasm and fpc to compile. and LD to link.

I will post the errors a little later
Gizmic OS
Currently - Busy with FAT12 driver and VFS
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: Pascal Problems

Post by Dex »

The FreePascal OS called "AnonymOS", available from my site, may help you ? . http://www.dex4u.com/pascal/AnonymOS.zip
System123
Member
Member
Posts: 196
Joined: Mon Jul 07, 2008 1:25 am

Re: Pascal Problems

Post by System123 »

Thanks. I downloaded it but I could not get it to compile there are some errors I must sort out
Gizmic OS
Currently - Busy with FAT12 driver and VFS
leledumbo
Member
Member
Posts: 103
Joined: Wed Apr 23, 2008 8:46 pm

Re: Pascal Problems

Post by leledumbo »

It works, but you need system.pas which is not written there. Search the forum for "Pascal wiki", someone posted his system.pas which works (I've tested it).
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Re: Pascal Problems

Post by inflater »

My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
Laksen
Member
Member
Posts: 140
Joined: Fri Nov 09, 2007 3:30 am
Location: Aalborg, Denmark

Re: Pascal Problems

Post by Laksen »

I've updated the wiki page slightly so it compiles and links correctly. It'll ofcourse require you to have updated tools(and the required tools, which aren't quoted on the wiki page)
http://j-software.dk | JPasKernel - My Object Pascal kernel
Post Reply