# Execution of arbitrary classes?

**URL:** https://forum.makecode.com/t/execution-of-arbitrary-classes/33976
**Category:** PXT
**Created:** [February 19, 2025, 6:01pm UTC](https://forum.makecode.com/t/execution-of-arbitrary-classes/33976 "2025-02-19T18:01:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Renderthegreat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/renderthegreat/32/19022_2.png) [@Renderthegreat](https://forum.makecode.com/u/Renderthegreat)
#### Post date: [February 19, 2025, 6:01pm UTC](https://forum.makecode.com/t/execution-of-arbitrary-classes/33976/1 "2025-02-19T18:01:56Z")

</div>

So, I need to **load a some string from memory into RAM** , and **execute it as a class**.  
Here’s a code example:

```typescript
function runClassFromMachineCode(...args) {
  // Run the machine code, If it segfaults, return 1.
};
const machineCode = rootFSController.getFile(appData["executable"]).read(); // I've already defined this stuff. All you need you to know is this will load the executable
timer.background(runClassFromMachineCode(apis)); // Run it in the background

```

If anyone knows knows how to do this in any language (Including assembly), please let me know!
