Results 1 to 24 of 24

Thread: What made vb?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Location
    Cleveland, Ohio
    Posts
    255

    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?

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    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.

  3. #3
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    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 ...

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: What made vb?

    Quote 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?

  5. #5
    Fanatic Member Comintern's Avatar
    Join Date
    Nov 2004
    Location
    Lincoln, NE
    Posts
    826

    Re: What made vb?

    Quote 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.

  6. #6
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    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

  7. #7
    Fanatic Member Comintern's Avatar
    Join Date
    Nov 2004
    Location
    Lincoln, NE
    Posts
    826

    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?

  8. #8
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: What made vb?

    Quote 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.

  9. #9
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: What made vb?

    Quote 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

  10. #10
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: What made vb?

    Quote 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?

  11. #11
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: What made vb?

    Quote 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

  12. #12
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: What made vb?

    Quote 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.

  13. #13
    Frenzied Member
    Join Date
    Oct 2003
    Posts
    1,301

    Re: What made vb?

    Quote 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.

  14. #14
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    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

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  15. #15
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    Re: What made vb?

    Quote 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...

  16. #16
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: What made vb?

    Quote 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.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  17. #17
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    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..

  18. #18
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: What made vb?

    Quote 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...

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  19. #19
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    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?
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  20. #20
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: What made vb?

    Quote 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.

    Quote 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

  21. #21
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: What made vb?

    Ha ha ... I knew some smarty pants would come back with that one! Bliksem
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  22. #22
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    Re: What made vb?

    they DID use assembler to build those compiler C++ C and ...
    does those means ALL ?

  23. #23
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: What made vb?

    Quote 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++.

  24. #24
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    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
  •  



Click Here to Expand Forum to Full Width