Skip to content
This repository was archived by the owner on Jan 6, 2020. It is now read-only.
This repository was archived by the owner on Jan 6, 2020. It is now read-only.

lirasm fails to build on Windows #2

@dibyendumajumdar

Description

@dibyendumajumdar

Hi,

Looks like in lirasm.cpp the following definition:

nanojit::Allocator::allocChunk(size_t nbytes, bool /*fallible*/)

doesn't match the declaration which does not have the extra bool parameter.

Also the following lines fail:

mLir = mCseFilter = new CseFilter(mLir, LIRASM_NUM_USED_ACCS, mParent.mAlloc);

Should this be:

mLir = mCseFilter = new CseFilter(mLir, LIRASM_NUM_USED_ACCS, mParent.mAlloc, mParent.mConfig);

And

Lirasm::Lirasm(bool verbose, Config& config) :
     mConfig(config),
     mAssm(mCodeAlloc, mAlloc, mAlloc, &mLogc, mConfig)

should be:

Lirasm::Lirasm(bool verbose, Config& config) :
     mConfig(config),
     mCodeAlloc(&config),
     mAssm(mCodeAlloc, mAlloc, mAlloc, &mLogc, mConfig)

I am building lirasm using Visual C++ 2015 on Windows 10.

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