Skip to content

Allow specifying the name of the source file #1491

Open
@1superchip

Description

@1superchip

Some compilers will use the source filename as part of a symbol to make a unique symbol. MWCC will use the filename as part of the static initializer symbol __sinit_code_c and in anonymous namespaces data__16@unnamed@code_c@. The filename on decomp.me is code.c which is what the compiler uses. This can cause problems when matching symbols on the website which contain the filename as it will most likely differ. This also affects when functions use the --disasssmble objdump flag and try to match these special symbols (such as sinit functions) as the compiled code on decomp.me will have a different symbol.

A scratch option to specify the name of the source file to allow matching of these symbols would be great.
File name: "Game.cpp"

Example scratch: https://decomp.me/scratch/k2inX

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions