Code Monkey home page Code Monkey logo

ktl's People

Contributors

rbroker avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

ktl's Issues

SDV slamcl fails with dynamic initialization of global static C++ objects

slamcl for SDV doesn't appreciate the global C++ static variables like:

static ktl::unique_ptr<KtlGlobalState> State{ new (ktl::pool_type::NonPaged) KtlGlobalState };

and fails with something like:

slamcl: error: Important: Function: "aggregate_dynamic_initializer": ESPCompilationUnit: fixup_locals_and_temps: Loc.OrigID: L(sdv_CALLSITE_RETURN_1,1,1046,1)
slamcl Warning: Important: Function: "aggregate_dynamic_initializer": SDV encountered an internal compiler error around this location.
slamcl: error: at phase 2: Failure("Important: Function: \"aggregate_dynamic_initializer\": ESPCompilationUnit: fixup_locals_and_temps: Loc.OrigID: L(sdv_CALLSITE_RETURN_1,1,1046,1)")
slamcl error at translate }

We can instead create some kind of global state object like this with something like:

static auto State = ktl::make_unique<KtlGlobalState>(ktl::pool_type::NonPaged);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.