|
-
Jan 6th, 2008, 06:40 PM
#1
Thread Starter
Frenzied Member
Why are some languages faster than other?
Aren't they all compiled into assembly/machine code? Wouldn't that make them all the same speed?
-
Jan 6th, 2008, 06:49 PM
#2
Fanatic Member
Re: [serious] Why are some languages faster than other?
Is it not the case that language a has ten megs of assembly/machine code, where as language b has 15. Therefore the memory footprint is bigger. At least thats how i would logicly view it!
Languages: Visual Basic 05/08, C# 08
IDE: Express Editions
Framework: 2.0, 3.0, 3.5
Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak
-
Jan 7th, 2008, 12:22 AM
#3
Re: Why are some languages faster than other?
 Originally Posted by Fromethius
Aren't they all compiled into assembly/machine code?
No. See compiled vs. interpreted vs. JIT-compiled.
All models are trade-offs of varying degrees.
 Originally Posted by CodedFire
Is it not the case that language a has ten megs of assembly/machine code, where as language b has 15. Therefore the memory footprint is bigger.
Memory footprint has nothing to do with speed. In fact optimisation often increases memory usage.
Moved from Chit Chat
-
Jan 7th, 2008, 01:29 PM
#4
Fanatic Member
Re: Why are some languages faster than other?
Ive spent the whole day reading up on cil (formerly msil?) and just in time compilation. Its a pretty good system. Although from what ive read it can be at times faster than native code due to the fact that it optimises the code it compiles to suit the chipset family, Surely this cant be right? after all it is still an extra compilation step vs straight native code?
Languages: Visual Basic 05/08, C# 08
IDE: Express Editions
Framework: 2.0, 3.0, 3.5
Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak
-
Jan 7th, 2008, 02:37 PM
#5
Re: Why are some languages faster than other?
It depends on what your code does, and the features that are provided in the compiler. Presumably it can make use of things like MMX, SSE, and threading on multiple processor cores - all of which can dramatically improve speed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|