• Research About Compiler!

    From Compiler@21:1/5 to All on Sat Dec 16 02:42:15 2017
    Hello, I hope you have a good day.


    I raised a lot of Questions in the following group. https://groups.google.com/forum/#!topic/golang-nuts/24pSm-B3 Faqo

    ---------------------

    I am a programmer and developer.
    And I'm pretty familiar with the compiler and interpreter steps.
    And I also have experience in making scripting/interpreter languages.
    And also after the experience in making the interpreter... , I started to make a generation code.(example : a input to another language with Lexer,Parser,AST,VM,Generate Code)
    And I've been upset by problems and questions about `Compiler`.


    Subject : Compiler Work!

    Questions :

    1-how can a compiler without another compiler and ASM , generate a final-executable file?

    2-please show me a sample/code/github/tutorial , a compiler then generate executable file without ASM and only with create object file.

    3-why many language not use from LLVM/IR or another tools?!

    4-RustLang have better performance from GoLang Language in many tests, so why google create new Language?! (https://github.com/kostya/benchmarks) and What you think about this?!

    5-The technique of generating an object file directly from the compiler does not have a name?


    Please Answer , if only Understand one Question. :+1: (like)
    Tanks you.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Percival@21:1/5 to Compiler on Tue Jan 9 21:21:13 2018
    Compiler wrote:


    5-The technique of generating an object file directly from the compiler does not have a name?

    From my youth (!) I recall the phrase "compile, link and go" (or just
    "clg"). This - https://en.wikipedia.org/wiki/Compile_and_go_system
    looks like the same thing under a different name.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jacobnavia@21:1/5 to All on Wed Jan 10 01:21:36 2018
    Le 16/12/2017 à 11:42, Compiler a écrit :
    Hello, I hope you have a good day.


    I raised a lot of Questions in the following group. https://groups.google.com/forum/#!topic/golang-nuts/24pSm-B3 Faqo

    ---------------------

    I am a programmer and developer.
    And I'm pretty familiar with the compiler and interpreter steps.
    And I also have experience in making scripting/interpreter languages.
    And also after the experience in making the interpreter... , I started to make a generation code.(example : a input to another language with Lexer,Parser,AST,VM,Generate Code)
    And I've been upset by problems and questions about `Compiler`.


    This is a bit confusing. You say that you are pretty familiar with the
    compiler and interpreter steps, but then... you say you get "upset"

    ??


    Subject : Compiler Work!

    Questions :

    1-how can a compiler without another compiler and ASM , generate a final-executable file?


    Very easy. Without ASM or another compiler, no executable can be built.

    2-please show me a sample/code/github/tutorial , a compiler then generate executable file without ASM and only with create object file.

    https://lcc-win32.services.net

    There is a software (lcc) that will take your C code and spit an
    executable if all goes well.


    3-why many language not use from LLVM/IR or another tools?!


    Impossible to figure out what you want here. Why use clang or whatever?

    4-RustLang have better performance from GoLang Language in many tests, so why google create new Language?! (https://github.com/kostya/benchmarks) and What you think about this?!


    Ask Google. Type your question and see what Google says.


    5-The technique of generating an object file directly from the compiler does not have a name?


    All compilers I know of, generate object code, or an executable.


    Please Answer , if only Understand one Question. :+1: (like)
    Tanks you.


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)