Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions baremetal/README
Original file line number Diff line number Diff line change
Expand Up @@ -1638,14 +1638,14 @@ fun passes 5+3 = 8 to morefun

morefun returns 8+7 = 15

fun saves 15 in pear
then returns 15+1 = 16
fun saves 22 in pear //initial value of pear is 7, plus the 15 of fun and morefun
then returns 22+1 = 23

So if we wanted to optimize this code and had visibility to all of the
functions we could optimize all of this code to be:

pear = 15;
x=16;
pear = 22; //pear = 7 + 15
x=23; //pear + 1

Actually notice how we dont do anything with the x variable in the
notmain function, we compute it but dont do anything with it? There
Expand Down