|
-
Apr 5th, 2005, 11:32 PM
#1
Thread Starter
Addicted Member
What made vb?
What compiler made vb?
What compiler made that compiler?
What compiler made that compiler?
Then eventually the question is, what compiler made asm?
Then probably what compiler made binary?
-
Apr 6th, 2005, 12:19 AM
#2
Re: What made vb?
Asembler is not compiled or decompiled. It is a set of instruction directly 'understandable' by the CPU. That's why it is called machine language.
-
Apr 6th, 2005, 02:05 AM
#3
Addicted Member
Re: What made vb?
assembler is a translator, let say u give it a file with assembly language code
eg.
Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>debug
-a100
0B24:0100 mov ax,5
0B24:0103 add ax,6
0B24:0106
-r
AX=0000 BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0B24 ES=0B24 SS=0B24 CS=0B24 IP=0100 NV UP EI PL NZ NA PO NC
0B24:0100 B80500 MOV AX,0005
-t
AX=0005 BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0B24 ES=0B24 SS=0B24 CS=0B24 IP=0103 NV UP EI PL NZ NA PO NC
0B24:0103 050600 ADD AX,0006
-t
AX=000B BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0B24 ES=0B24 SS=0B24 CS=0B24 IP=0106 NV UP EI PL NZ NA PO NC
0B24:0106 FFBFB801 ??? [BX+01B8] DS:01B8=A206
-
then the assembler would translate them (those ASCII text) into computer understood machine language. (usually they displayed them in HEX)
eventually, there is a person (first person) who code in HEX !, yup, that person code in HEX! and he made the first assembler (translator). eg. 05 is equal to add (ax) so after that (first person) built that assembler, then the following person use his assembler to build another assembler. (no depencency on the first assembler because he then build an assembler that able to assembly itself!) so, the ball keeps rolling and now, we have some famous assembler in the market, MASM, TASM, FASM and more.
one thing i am sure is, they DID use assembler to build those compiler C++ C and ...
-
Apr 6th, 2005, 09:40 AM
#4
Re: What made vb?
 Originally Posted by Jacob123
What compiler made vb?
What compiler made that compiler?
What compiler made that compiler?
Then eventually the question is, what compiler made asm?
Then probably what compiler made binary?
What made the Earth?
What made that something that made the Earth?
What made the Universe?
-
Apr 6th, 2005, 10:27 AM
#5
Re: What made vb?
 Originally Posted by asmdev
one thing i am sure is, they DID use assembler to build those compiler  C++ C and ...
Here's something that will really screw with your head. It is possible for some compilers to compile themselves from their own source code.
-
Apr 6th, 2005, 10:34 AM
#6
Re: What made vb?
If thats the case, how would they be executed to compile themselves? The compile themselves from the source code without anything translating?
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Apr 6th, 2005, 10:46 AM
#7
Re: What made vb?
I meant that some pre-compiled compilers can compile themselves from source. Ie, if compiler A is a C compiler written in C, and you compile it with C compiler B, then you should be able to compile compiler A with compiler A's executable from compiler A's source.
Wow, who would have thought you could use the word "compile" so many times in the same sentence?
-
Apr 6th, 2005, 10:52 AM
#8
Re: What made vb?
 Originally Posted by Comintern
Here's something that will really screw with your head. It is possible for some compilers to compile themselves from their own source code. 
Well, yes... Not the first time of course because at that time it's not a compiler it's just source files. But if you've compiled the source to a new compiler you can use that to compile the source that made it. If it's written in the same language that it's supposed to compile.
In short: You can write a C++ compiler in C++. Actually Delphi 2.0 was written in Delphi 1.0.
-
Apr 6th, 2005, 01:45 PM
#9
Re: What made vb?
 Originally Posted by Joacim Andersson
Well, yes... Not the first time of course because at that time it's not a compiler it's just source files. But if you've compiled the source to a new compiler you can use that to compile the source that made it. If it's written in the same language that it's supposed to compile.
In short: You can write a C++ compiler in C++. Actually Delphi 2.0 was written in Delphi 1.0.
If Delphi 2.0 was written in Delphi 1.0, whats the point of the upgrade? Couldn't you just use Delphi 1.0 for everything you needed? Seems strange...
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Apr 6th, 2005, 02:23 PM
#10
Re: What made vb?
 Originally Posted by «°°phReAk°°»
If Delphi 2.0 was written in Delphi 1.0, whats the point of the upgrade? Couldn't you just use Delphi 1.0 for everything you needed? Seems strange... 
Well, what can you do in VB6 that you can't do in VB5?
-
Apr 6th, 2005, 02:35 PM
#11
Re: What made vb?
 Originally Posted by Joacim Andersson
Well, what can you do in VB6 that you can't do in VB5?
WebClasses 
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Apr 6th, 2005, 02:40 PM
#12
Re: What made vb?
 Originally Posted by «°°phReAk°°»
WebClasses
Yes, WebClasses was a (pointless) addition in VB6, and WebClasses are also a new RAD tool. But they don't add anything I couldn't have made in VB5.
-
Apr 6th, 2005, 02:44 PM
#13
Frenzied Member
Re: What made vb?
 Originally Posted by «°°phReAk°°»
If Delphi 2.0 was written in Delphi 1.0, whats the point of the upgrade? Couldn't you just use Delphi 1.0 for everything you needed? Seems strange... 
Delphi 2 was not written in Delphi 1.
A delphi 2 _compiler_ was written in Delphi 1.
Big difference.
The reason to develope Delphi 1 into delphi 2 would be to offer more or better features.
And it gives customers a reason to pay you again.
-
Apr 6th, 2005, 02:47 PM
#14
Re: What made vb?
I see from the lack of many serious answers to the original post that this thread is headed for chit-chat
-
Apr 6th, 2005, 02:51 PM
#15
Fanatic Member
Re: What made vb?
 Originally Posted by baja_yu
Asembler is not compiled or decompiled. It is a set of instruction directly 'understandable' by the CPU. That's why it is called machine language.
what does mean...?? DIRECTLY...
-
Apr 6th, 2005, 02:59 PM
#16
Re: What made vb?
 Originally Posted by vbPoet
what does mean...?? DIRECTLY...
The job of the CPU is too look at an instruction (a machine code instruction) in memory and execute that instruction. That instruction optionally has other bits in memory that are part of it - addresses of data, string, long - all specific to the instruction.
The instruction will perform some operation - maybe output a value to memory. Or maybe it simply move the PC (program counter) to a new instruction. Sometimes the JUMP to a new location is based on a comparison.
All of these machine code instructions are known to the CPU chip - developed by the people at INTEL and AMD and where ever else.
The job of a compiler is to assemble the syntax of the higher level languages into machine code that the CPU can process.
What language the compiler is written in is meaningless - it's job is to take:
IF X = 1 THEN GOTO LABEL
and turn it into the machine code of a JUMP if a memory location called X has a value of 1 to some spot in memory that LABEL refers to.
So having Delphi 2.0 written in Delphi 1.0 means nothing about the new syntax capability in Delphi 2.0.
-
Apr 6th, 2005, 04:53 PM
#17
Fanatic Member
Re: What made vb?
oK
it means there is nothing to deal with Programming languages..
every thing is about how Complier is structured or constructed..
-
Apr 6th, 2005, 04:59 PM
#18
Re: What made vb?
 Originally Posted by vbPoet
oK
it means there is nothing to deal with Programming languages..
every thing is about how Complier is structured or constructed..
I'm not sure I really understand what you mean by this - sorry, if you could be more clear it would be helpful...
-
Apr 6th, 2005, 09:34 PM
#19
Frenzied Member
Re: What made vb?
I'm right if I say a cpu (or any electrical/electronical device) can only understand one of two states...on and off.... 1 and 0
If that is so, it mean whatever runs first after the cpu must have been written in 1's and 0's?
Sound like stupid, I know...Maybe I just got it wrong
I mean....Say you got one of this stuff that switch on a ligth by clapping your hands. The device is kinda clever, cuz it figures out what sound should be used and what ignored...but at the bottom line, the light switch itself just go on and off..... right?
-
Apr 6th, 2005, 09:53 PM
#20
Re: What made vb?
 Originally Posted by StrangerInBeijing
I'm right if I say a cpu (or any electrical/electronical device) can only understand one of two states...on and off.... 1 and 0
This is not really correct. A transistor can only have one of two states. A CPU contains many millions of tranistors.
 Originally Posted by StrangerInBeijing
I mean....Say you got one of this stuff that switch on a ligth by clapping your hands. The device is kinda clever, cuz it figures out what sound should be used and what ignored...but at the bottom line, the light switch itself just go on and off..... right?
Yeah, unless you have a dimmer
-
Apr 6th, 2005, 09:57 PM
#21
Frenzied Member
Re: What made vb?
Ha ha ... I knew some smarty pants would come back with that one! Bliksem
-
Apr 7th, 2005, 02:43 AM
#22
Addicted Member
Re: What made vb?
they DID use assembler to build those compiler C++ C and ...
does those means ALL ?
-
Apr 7th, 2005, 06:28 AM
#23
Re: What made vb?
 Originally Posted by asmdev
one thing i am sure is, they DID use assembler to build those compiler  C++ C and ...
Actually Bjarne Stroustrup the creator of C++ never made a C++ compiler. He wrote a program called CFront (and did it in C) that simply translated the C++ source code into C and then used the old C compiler to compile the source.
I know for a fact that any new development MS does on VC++ is done using VC++.
-
Apr 9th, 2005, 05:59 PM
#24
Addicted Member
Re: What made vb?
well, maybe some one here wanna learn more on c or cpp
this link list some of the free downloadble compilers from internet
http://www.compilers.net/Dir/Free/Compilers/index.htm
of course, if you google or yahoo. you would find more :P
http://directory.google.com/Top/Comp...ing/Languages/
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
|