C program to find RAM size?



How to write a C program (which can be complied by GNU C compiler) to
find the RAM and ROM size of the computer(PC)." dos.h" , int86(..) not
available in GNU library.

.