OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 23, 2024 3:29 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Ada: using bb-runtimes?
PostPosted: Sun Feb 06, 2022 7:33 pm 
Offline
Member
Member

Joined: Sun Jun 23, 2019 5:36 pm
Posts: 618
Location: North Dakota, United States
The Ada Bear Bones article makes you build your own runtime, but AdaCore has various bear-metal runtimes available. Would it be worth trying to use one of those runtimes or would it be better to just write my own? Just asking out of curiosity at this point.


Top
 Profile  
 
 Post subject: Re: Ada: using bb-runtimes?
PostPosted: Sun Feb 06, 2022 7:57 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5143
They look like they could be useful as a starting point, but for developing a whole OS you wouldn't be able to use them unmodified. (And it looks like the x86-64 code writes an uninitialized value to CR0, so I'm not sure how well those runtimes have been tested.)

A good chunk of the wiki page was written a decade ago. Did the bare metal runtimes exist back then?


Top
 Profile  
 
 Post subject: Re: Ada: using bb-runtimes?
PostPosted: Sun Feb 06, 2022 8:26 pm 
Offline
Member
Member

Joined: Sun Jun 23, 2019 5:36 pm
Posts: 618
Location: North Dakota, United States
Octocontrabass wrote:
They look like they could be useful as a starting point, but for developing a whole OS you wouldn't be able to use them unmodified. (And it looks like the x86-64 code writes an uninitialized value to CR0, so I'm not sure how well those runtimes have been tested.)

A good chunk of the wiki page was written a decade ago. Did the bare metal runtimes exist back then?

I don't think so. According to git, the very first commit occurred on Fri Sep 19 07:54:14 2014 +0000. However, that appears to be a git-svn import, so I honestly have no idea how old the repository is. Perhaps the x86 runtime didn't exist back then?
I could always just build my own runtime following the guide and then import what I want, perhaps. I do think its nice how the runtime acts as its own bootloader though.


Top
 Profile  
 
 Post subject: Re: Ada: using bb-runtimes?
PostPosted: Sun Feb 06, 2022 9:47 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1604
Ethin wrote:
According to git, the very first commit occurred on Fri Sep 19 07:54:14 2014 +0000. However, that appears to be a git-svn import, so I honestly have no idea how old the repository is.
git-svn preserves timestamps (that's rather the whole point), so this commit is likely the first revision on the SVN repo.

_________________
Carpe diem!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 112 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group