LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2011, 06:20 AM   #1
parminder_singh
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
using ROM BIOS Interrupts


Hello,
I'am supposed to write a piece of code that determines the memory size of a computer. i tried int86(); function in windows only to find out that it wont compile and also it would run only in the DOS environment.Please suggest a linux equivalent of this function or any other solution that might allow me to write and run the code in windows without ofcourse installing VMware ,DOS and borland c++ compilers.
Thanks.
 
Old 01-29-2011, 09:17 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Welcome to LQ!

(Linux is Not Windows) 'Refers to the GNU/Linux OS and various Free & Open-Source Software (FOSS) projects under the catch-all name of "Linux".

You would need to use the compiler & linker for a M$ based system if a executable is to be run on same.

For a Gnu/Linux system you can look at '/proc/meminfo';
Code:
~# cat /proc/meminfo
which would provide the information.
 
Old 01-29-2011, 01:27 PM   #3
parminder_singh
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 0
thanks..

kind regards,

parminder
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIOS can't boot from CD-ROM. How to install? SpiderIRE Fedora - Installation 3 01-18-2006 03:40 PM
BIOS Interrupts Orkie Programming 3 04-22-2005 10:23 AM
IDE CD-ROM/CD-RW troubles - lost interrupts, looong waits meldroc Linux - Hardware 1 10-12-2003 02:46 PM
Mouse detected in bios but not assigned IRQ in /proc/interrupts Onyx^ Linux - Hardware 4 08-26-2003 10:43 AM
CD-ROM and the BIOS habiblove General 0 05-14-2001 11:39 PM


All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration