OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Jun 29, 2022 9:43 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: GNAT cross-compiler: what target triplet to use?
PostPosted: Tue May 17, 2022 10:55 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4371
Location: Chichester, UK
I think you can find a sensible maximum that is rather less than that. You’re not going to have as many memory regions with as there are bytes of memory. But what does it matter? You’re never going to actually reach that limit; in reality you are just saying “this array is of unknown size”. If you are assigning an address to the record, it’s never going to use more memory - just the bytes you have already read into RAM at that address.


Top
 Profile  
 
 Post subject: Re: GNAT cross-compiler: what target triplet to use?
PostPosted: Mon May 23, 2022 4:59 pm 
Offline
Member
Member

Joined: Sun Jun 23, 2019 5:36 pm
Posts: 591
Location: North Dakota, United States
So I've ported the Limine spec structs and stuff to Ada and I want to use it. Actually writing the kernel-to-bootloader structs is trivial, but how do I actually read back what the bootloader gives me? In other words: I parse the stivale structure and have the address of the first tag. But how do I actually parse that structure? I suppose I could just declare a tag structure, set its address to the address of the first tag, and then start reading that data, but do I need unchecked conversion to read the (entire) structure, including the tag? If so, that's going to get incredibly irritating, given that I'll need to instantiate Unchecked_Conversion for *every* Stivale2 structure combination. I feel like I'm overthinking the problem, though.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 6 hours


Who is online

Users browsing this forum: DotBot [Bot], SemrushBot [Bot] and 7 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