mean a compiler like golang , then for use no need any another compiler and
tools. only itself.
hello.go file :
package main
import "fmt"
func main() {
fmt.Println("hello world!")
}
------
$ go build hello.go
On Wednesday, December 13, 2017 at 4:10:18 PM UTC+3:30, [email protected]
wrote:
>
> How can write a compiler Using C as test.exe then can use from test.exe
> compiler any where... so can write a input file like hello world
> application and generate executable file using test.exe.
>
> undrestand?
>
> On Wednesday, December 13, 2017 at 4:05:52 PM UTC+3:30, Chris Hopkins
> wrote:
>>
>> I think we have a misunderstanding. If we don't clear up this
>> misunderstanding then we will keep going around in circles.
>> Not wishing to offend, this comes across as a fishing expedition not as a
>> request for specific help; however under the assumption that this is not
>> the case, I'll try and guess at what you mean.
>>
>> "how can make a new compiler programming language using c without
>> assembly?"
>>
>> Forget C. There is nothing special about C. It's just a computer language
>> like any other. Any language can be used to create a compiler, you are
>> converting text into an AST then resolving that.
>> The question I think you are asking is:
>> "how can make a new compiler programming language using an existing
>> language?"
>> or
>> "How can you write a program that will convert Text into Assembly?"
>>
>> If this is what you are asking, then you are fundamentally asking me to
>> describe how a compiler works, in the length of an email. There are books
>> thousands of pages long written on this subject.
>> Before I even start to tackle that, can I confirm this is what you are
>> asking?
>>
>> Regards
>>
>> Chris
>> On Wednesday, 13 December 2017 12:20:22 UTC, [email protected] wrote:
>>>
>>> Could you first answer this question?
>>> They question may also be answered.
>>>
>>> *how can make a new compiler programming language using c without
>>> assembly?(a compiler then can produce executable file) ??*
>>>
>>> On Wednesday, December 13, 2017 at 3:40:05 PM UTC+3:30, Chris Hopkins
>>> wrote:
>>>>
>>>> Before I answer anything else, I don't understand what you are saying
>>>> with:
>>>>
>>>> On Wednesday, 13 December 2017 11:49:06 UTC, [email protected] wrote:
>>>>>
>>>>> i want research about gocompiler and want recompile main go-compiler
>>>>> in gnu/linux operation system.(ubuntu/arch)
>>>>> not recompile golang.
>>>>>
>>>>
>>>> To my mind:
>>>> golang == gocompiler
>>>>
>>>> (Yes one could argue golang is also the go tooling + the standard
>>>> library + the open sourced packages + the community + ... but that's
>>>> beside
>>>> the point)
>>>>
>>>> What do you mean by the differences between "main go-compiler" and
>>>> "golang"
>>>>
>>>> Regards
>>>>
>>>> Chris
>>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.