Skip to content

Investigate revmc's compilation config #81

@dajuguan

Description

@dajuguan
           Ok(Cow::Borrowed(HOST_TARGET_INFO.get_or_init(|| {
                    let triple = TargetMachine::get_default_triple();
                    let target = Target::from_triple(&triple).unwrap();
                    let cpu = TargetMachine::get_host_cpu_name().to_string_lossy().into_owned();
                    let features =
                        TargetMachine::get_host_cpu_features().to_string_lossy().into_owned();
                    Self { target, triple, cpu, features }
                })))

RelocMode::PIC, CodeModel::JITDefault, opt_level 3 for targetMachine, JITEngine and IR optimization

I tried the same config in go-evmc with both AOT and JIT compilation, but it still doesn’t work for the snailTracer contract.

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