8000 Malformed asm functions pass Tact compiler but fail during FunC compilation stage · Issue #1030 · tact-lang/tact · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Malformed asm functions pass Tact compiler but fail during FunC compilation stage #1030
Open
@Shvandre

Description

@Shvandre

Are you using the latest released (or pre-released, a.k.a. "next") version?

  • I'm using the latest Tact version

Tact source code

import "@stdlib/deploy";

asm fun myCode(): Cell { "MYCODE" }

contract Sample {
    mycode: Cell;
    init() {
        self.mycode = myCode();
    }
}

Relevant Tact/build system log output

yarn run v1.22.22
$ tact --config ./tact.config.json
💼 Compiling project sample ...
   > Sample: tact compiler
   > Sample: func compiler
Func compilation error: /home/b4cksl4sh/TON-Studio/tact-template/sources/output/sample_Sample.code.fc:13:47: error: string extends past end of line
  cell $global_myCode() impure asm """"MYCODE"""";
💥 Compilation failed. Skipping packaging
error Command failed with exit code 30.

What happened?

No response

What did you expect?

As asm functions are declared in funC in "", it might be the common mistake. Maybe tact compiler should check that? Or change the format of asm functions, because static analizers are mad at them.

Steps to reproduce

No response

How do you run Tact?

tact-template

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: asmTact-embedded assembly functionskind: bugSomething isn't working or isn't rightscope: codegenCode generation, a.k.a. compiler backend (src/generator)scope: parserImplementation of parser (src/grammar)

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0