Skip to contentSkip to content

Futures in Rust and IT Exams

  • Contact Us
Close Button

Stack sizes – Creating Our Own FibersStack sizes – Creating Our Own Fibers

2022-10-152022-10-15| Christine WichmanChristine Wichman| 0 Comment| 03:24

Note The actual addresses you get will be different every time you run the program. In other words, the values 240, 205, 252, 56, 67, 86, 0, 0 represent the

Read MoreRead More

What does the stack look like? – Creating Our Own FibersWhat does the stack look like? – Creating Our Own Fibers

2022-09-212022-09-21| Christine WichmanChristine Wichman| 0 Comment| 03:24

Tip As we end the program in an endless loop, you’ll have to exit by pressing Ctrl + C. OK, so what happened? We didn’t call the function hello at

Read MoreRead More

Running our example – Creating Our Own FibersRunning our example – Creating Our Own Fibers

2022-08-282022-08-28| Christine WichmanChristine Wichman| 0 Comment| 03:22

Options The last thing we need to introduce to get a minimal understanding of Rust’s inline assembly for now is the options keyword. After the input and output parameters, you’ll

Read MoreRead More

An introduction to Rust inline assembly macro – Creating Our Own FibersAn introduction to Rust inline assembly macro – Creating Our Own Fibers

2022-07-152022-07-15| Christine WichmanChristine Wichman| 0 Comment| 03:21

We’ll use the body of our gt_switch function as a starting point by going through everything step by step. If you haven’t used inline assembly before, this might look foreign,

Read MoreRead More

NOTE – Creating Our Own Fibers-2NOTE – Creating Our Own Fibers-2

2022-06-102022-06-10| Christine WichmanChristine Wichman| 0 Comment| 03:20

Now, this is where it gets a little difficult. On the x86-64 instruction set, there is no way for us to manipulate rip directly, so we have to use a

Read MoreRead More

NOTE – Creating Our Own Fibers-1NOTE – Creating Our Own Fibers-1

2022-05-302022-05-30| Christine WichmanChristine Wichman| 0 Comment| 03:19

There seems to be an issue in macOS using such a small stack. The minimum for this code to run is a stack size of 624 bytes. The code works

Read MoreRead More

An example we can build upon– Creating Our Own FibersAn example we can build upon– Creating Our Own Fibers

2022-03-202022-03-20| Christine WichmanChristine Wichman| 0 Comment| 03:18

Note We will use the Intel dialect in our examples. Assembly has strong backward compatibility guarantees. That’s why you will see that the same registers are addressed in different ways.

Read MoreRead More

The System V ABI for x86-64 – Creating Our Own FibersThe System V ABI for x86-64 – Creating Our Own Fibers

2022-02-182022-02-18| Christine WichmanChristine Wichman| 0 Comment| 03:17

As mentioned earlier, this architecture of the CPU features a set of 16 general-purpose 64-bit registers, 16 SSE registers with 128-bit width, and 8 floating point registers with 80-bit width:

Read MoreRead More

TIP – Creating Our Own Fibers-2TIP – Creating Our Own Fibers-2

2022-01-162022-01-16| Christine WichmanChristine Wichman| 0 Comment| 03:15

The x86-64 ISA defines 16 general-purpose registers. These are registers the CPU provides for programmers to use for whatever they see fit. Note that programmers here include the ones that

Read MoreRead More

TIP – Creating Our Own Fibers-1TIP – Creating Our Own Fibers-1

2021-12-142021-12-14| Christine WichmanChristine Wichman| 0 Comment| 03:13

To find the architecture on your current system, run one of the following commands in your terminal: On Linux and MacOS: arch or uname -m On Windows PowerShell: $env:PROCESSOR_ARCHITECTURE On

Read MoreRead More

Posts pagination

Previous 1 2 3

Search

Archives

  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • May 2023
  • April 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021

Meta

  • Log in

Categories

  • Creating coroutines
  • Do all futures have to be lazy?
  • Exams of IT
  • Guard, skip, and switch functions
  • IT Certification Exams
  • Non-leaf futures
  • Running our example
  • What does the stack look like?

Dropdown Categories

Tag Cloud



Terms and conditions | Copyright complaints | Rights and Clearance | Cookie Preferences

Scroll Up