The structure of C on the propeller
homosapien
Posts: 147
in Propeller 1
Jumping from SPIN to C on the prop, not quite sure where these questions should be posted... (here, because this is not 'blockyProp'??).
Anyhow, I notice many programs include the propeller.h file in addition to many other .h files. I can see in the /Learn/Simple Libraries/ directory there are many sub-directories that contain the .h files for specific libraries (such as fdserial.h file is contained in /Learn/Simple Libraries/TextDevices/libfdserial directory). However, I cannot see any place that the propeller.h file is listed, nor any source files for the actual c coding for the methods contained in propeller.h. I realize one can use the Help/Simple Library Reference menu from SimpleIDE and see the html file /SimpleIDE/Learn/Simple%20Libraries%20Index.html which shows the documentation of propeller.h (and actually use links on that page to see a html listing of the source code.)
So my question is, where exactly IS the propeller.h file and the corresponding propeller.c source code? Is this code already compiled to binary form and 'baked in' to the propellerGCC? Why are all the other Simple Libraries C source code available in sub-directories of /Learn/Simple Libraries/ ? Is this because the propeller.h file is always used, while any other library file may or may not be included/compiled when a project is built?
Thanks,
Nate
Anyhow, I notice many programs include the propeller.h file in addition to many other .h files. I can see in the /Learn/Simple Libraries/ directory there are many sub-directories that contain the .h files for specific libraries (such as fdserial.h file is contained in /Learn/Simple Libraries/TextDevices/libfdserial directory). However, I cannot see any place that the propeller.h file is listed, nor any source files for the actual c coding for the methods contained in propeller.h. I realize one can use the Help/Simple Library Reference menu from SimpleIDE and see the html file /SimpleIDE/Learn/Simple%20Libraries%20Index.html which shows the documentation of propeller.h (and actually use links on that page to see a html listing of the source code.)
So my question is, where exactly IS the propeller.h file and the corresponding propeller.c source code? Is this code already compiled to binary form and 'baked in' to the propellerGCC? Why are all the other Simple Libraries C source code available in sub-directories of /Learn/Simple Libraries/ ? Is this because the propeller.h file is always used, while any other library file may or may not be included/compiled when a project is built?
Thanks,
Nate
Comments
It is somewhat weird that all the libraries seem to be listed in the /Learn folder, except for the propeller.h/c files...
Nate
Not that this is an important detail, but when looking in the 'Simple Libraries Folder Index', I see a bunch of headings such as 'Audio', 'Convert', 'Display' and also 'Propeller GCC' where I see 'propeller.h' listed, but this is not part of the Simple Library? Does the term 'Simple Library' mean anything more than 'some useful libraries included with the SimpleIDE download'?
Quite specifically, it is https://github.com/parallaxinc/Simple-Libraries