Skip to content

cmd/compile: use directive instead of command-line option for the compiling_runtime mode (aka '-+') #17942

@typeless

Description

@typeless

In summary, that will make the subset of Go which is capable of writing the runtime code available to users.

Purposes:

  1. Sometimes we want to write libraries in Go that would be linked by other languages. Most of the time a library equipped with its own runtime would be too heavyweight.

  2. Compiler-aided guarantee of zero-allocation code. That would make Go usable in certain extreme environments (like writing IRQ handlers!). Writing performance-critical tight loops can be benefited as well.

  3. Much economical binary size for tiny programs that don't require full-fledged GC and concurrency support (like those simple utilities whose jobs are mostly calling syscalls).

  4. Potentially we gophers can invade further into C's territory.

  5. Save C programmers from the living standard belonging to the last century.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions