On 11-03-15 10:18 AM, Marijn Haverbeke wrote:
Steer your browser towards https://github.com/graydon/rust/wiki/Crate-format-rfc

Looks good! Just some comments:

> The crate descriptor section contains a table mapping paths...

Only exported paths need to be here, right? You talk about local defs not being stable, but we recompile a crate at a time, so any local use of a local def becomes a "pointer".

Also, these table contains only constant and functions, right? Types are in the table you describe afterwards.

In order to use the regular system linker, the exported functions and constants have to be listed as mangled symbol names. Since we are already paying the cost of having a mangled symbol, we can probably use that to find the metadata about that symbol. Having our table be indexed by a hash of the symbol name for example.

Thanks,
Marijn

Cheers,
Rafael
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to