Reputation: 141
Can I obtain the source code for the core Ada libraries?
I'd like to see the implementation of Text_IO.Get_Imediate and a few other features.
Upvotes: 2
Views: 308
Reputation:
If you are on a linux/unix type system, the ada libs will probably be in somewhere like :
/usr/lib/gcc/x86_64-linux-gnu/4.4/adainclude/
NOTE: The filenames here do not use the standard rules for filename/package association and There are many renames etc, so you may need to dig a lot to find actually what you are looking for.
Upvotes: 2
Reputation: 8522
If you're using one of the GNAT GPL distributions from AdaCore, and editing with GPS, you can simply right-click on a package or subprogram and select "Go to body of ..." and it will navigate you right to it.
Upvotes: 2
Reputation: 1804
This is dependant on the compiler you use. Some are open source, others are not.
If you use GNAT: Yes, you can. Either download/install the source package from your package repository, or download it from AdaCore on their libre page: http://libre.adacore.com
Upvotes: 2