mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 19:01:30 +11:00
linked a cppcon talk because it's amazing
This commit is contained in:
parent
c196ebc42b
commit
44abf95841
|
@ -96,6 +96,11 @@ If you think about it for a moment you'll probably realize that, those inputs
|
||||||
and outputs are totally useless to us on a GBA. There's no OS on the GBA to call
|
and outputs are totally useless to us on a GBA. There's no OS on the GBA to call
|
||||||
our program, and there's no place for our program to "return to" when it's done.
|
our program, and there's no place for our program to "return to" when it's done.
|
||||||
|
|
||||||
|
Side note: if you want to learn more about stuff "before main gets called" you
|
||||||
|
can watch a great [CppCon talk](https://www.youtube.com/watch?v=dOfucXtyEsU) by
|
||||||
|
Matt Godbolt (yes, that Godbolt) where he delves into quite a bit of it. The
|
||||||
|
talk doesn't really apply to the GBA, but it's pretty good.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
unsafe {
|
unsafe {
|
||||||
```
|
```
|
||||||
|
|
|
@ -220,6 +220,10 @@ how <code>#[start]</code> is specified to work in Rust.</p>
|
||||||
<p>If you think about it for a moment you'll probably realize that, those inputs
|
<p>If you think about it for a moment you'll probably realize that, those inputs
|
||||||
and outputs are totally useless to us on a GBA. There's no OS on the GBA to call
|
and outputs are totally useless to us on a GBA. There's no OS on the GBA to call
|
||||||
our program, and there's no place for our program to "return to" when it's done.</p>
|
our program, and there's no place for our program to "return to" when it's done.</p>
|
||||||
|
<p>Side note: if you want to learn more about stuff "before main gets called" you
|
||||||
|
can watch a great <a href="https://www.youtube.com/watch?v=dOfucXtyEsU">CppCon talk</a> by
|
||||||
|
Matt Godbolt (yes, that Godbolt) where he delves into quite a bit of it. The
|
||||||
|
talk doesn't really apply to the GBA, but it's pretty good.</p>
|
||||||
<pre><pre class="playpen"><code class="language-rust">
|
<pre><pre class="playpen"><code class="language-rust">
|
||||||
# #![allow(unused_variables)]
|
# #![allow(unused_variables)]
|
||||||
#fn main() {
|
#fn main() {
|
||||||
|
|
|
@ -374,6 +374,10 @@ how <code>#[start]</code> is specified to work in Rust.</p>
|
||||||
<p>If you think about it for a moment you'll probably realize that, those inputs
|
<p>If you think about it for a moment you'll probably realize that, those inputs
|
||||||
and outputs are totally useless to us on a GBA. There's no OS on the GBA to call
|
and outputs are totally useless to us on a GBA. There's no OS on the GBA to call
|
||||||
our program, and there's no place for our program to "return to" when it's done.</p>
|
our program, and there's no place for our program to "return to" when it's done.</p>
|
||||||
|
<p>Side note: if you want to learn more about stuff "before main gets called" you
|
||||||
|
can watch a great <a href="https://www.youtube.com/watch?v=dOfucXtyEsU">CppCon talk</a> by
|
||||||
|
Matt Godbolt (yes, that Godbolt) where he delves into quite a bit of it. The
|
||||||
|
talk doesn't really apply to the GBA, but it's pretty good.</p>
|
||||||
<pre><pre class="playpen"><code class="language-rust">
|
<pre><pre class="playpen"><code class="language-rust">
|
||||||
# #![allow(unused_variables)]
|
# #![allow(unused_variables)]
|
||||||
#fn main() {
|
#fn main() {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue