Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Qbinux
#31
Quote:Out of curiosity, how much is FB dependent on run-time libraries?
I haven't looked at the newer versions of FB, but IIRC it is quite dependant on the libraries. Strings and arrays for example make calls to the runtime libs. However since the runtime library source is readily available it could be rewritten if you wanted to use FB for creating an operating system with, I think it could be done although it would be a lot of work (and probably not worth the effort).

The reason languages like C are used for operating systems development is that they are not dependant on a runtime library. C programs can be compiled without linking to the standard C library and still have (basic char *) strings, arrays, structs etc. You don't get functions such as printf, malloc, strcpy, etc. If you need those functions when writing an operating system then you need to implement them yourself. Most operating systems for example have a function called kprintf which is a cut down version of printf for printing messages from within the kernel. Some of the code for the kprintf function will be system dependant since different systems print characters to the screen in different ways at the hardware level.
esus saves.... Passes to Moses, shoots, he scores!
Reply
#32
I know quite well why C is used... I was just curious to know how difficult it would be to use FB... from what I hear, it wouldn't be worth it... oh well. There's probably little reason for an FB OS anyway.

Edit: So if I save the source files, is that NASM source? And is that still dependent on run-time libraries?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
Reply
#33
Quote:Edit: So if I save the source files, is that NASM source? And is that still dependent on run-time libraries?
No, it is not NASM source - it is intended for GAS, the GNU assembler. The reason I pointed out that switch was so you could see where FB runtime library routines are called (i.e. nearly everywhere).
Reply
#34
Ah ok... lol.
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)