Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Is C under DOS and Unix same?

Status
Not open for further replies.

ykul

Newbie level 4
Joined
Oct 16, 2007
Messages
7
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,333
Is C under DOS and Unix same? If different how n if same how pls explain.
 

rasj12

Junior Member level 1
Joined
Sep 21, 2006
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Mumbai
Activity points
1,369
C under dos and unix have some differences
like C uses 64 bit register to store computed value..
where as Unix compiler uses 90 bit.. so u may get different results for same progam in floating point operations!
 

vicho

Newbie level 3
Joined
Jul 26, 2007
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
The main difference is that under Unix capital letters matter, but under DOS they don't ;)
 

gliss

Advanced Member level 2
Joined
Apr 22, 2005
Messages
692
Helped
75
Reputation
150
Reaction score
16
Trophy points
1,298
Activity points
5,892
Dos lacks Unix system calls. That's probably the biggest difference.
 

abaidullah

Member level 5
Joined
Apr 28, 2006
Messages
81
Helped
8
Reputation
16
Reaction score
4
Trophy points
1,288
Activity points
1,608
i think c works in the way under Linux and DOS .. only the compilers matter in this regard.
 

Joined
Sep 3, 2007
Messages
853
Helped
66
Reputation
132
Reaction score
16
Trophy points
1,298
Activity points
0
Hi all,
Of course C langage under doc or linux is the same. It is a Standardized language so it remain the same.
The difference is in the compilation even if we use the same compiler for each platform we obtain the same result in execution but not same binary file.
64 bits, 32 bits Microprocessor is with relation with machine/hardware and which can support any type of OS like linux, Unix, Dos, Windows etc.
 

sci-3d

Full Member level 2
Joined
Aug 25, 2006
Messages
125
Helped
7
Reputation
14
Reaction score
0
Trophy points
1,296
Location
USA
Activity points
1,893
They are the same, if compilers follow ANSI-C specification.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top