mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
feat: fix typos
This commit is contained in:
+2
-2
@@ -70,7 +70,7 @@ object. Every memory object is given an index, and pointers use that index to
|
||||
look up the current active object for the pointer to load from or to copy
|
||||
when storing to it.
|
||||
|
||||
Rolling back a function should roll back everyting, including the few
|
||||
Rolling back a function should roll back everything, including the few
|
||||
instructions emitted at runtime. This is done by treating instructions much
|
||||
like memory objects and removing the created instructions when necessary.
|
||||
|
||||
@@ -88,7 +88,7 @@ LLVM than initialization code. Also, there are a few other benefits:
|
||||
they can be propagated and provide some opportunities for other
|
||||
optimizations (like dead code elimination when branching on the contents of
|
||||
a global).
|
||||
* Constants are much more efficent on microcontrollers, as they can be
|
||||
* Constants are much more efficient on microcontrollers, as they can be
|
||||
allocated in flash instead of RAM.
|
||||
|
||||
The Go SSA package does not create constant initializers for globals.
|
||||
|
||||
+1
-1
@@ -254,7 +254,7 @@ func (r *runner) compileFunction(llvmFn llvm.Value) *function {
|
||||
}
|
||||
}
|
||||
case llvm.BitCast, llvm.IntToPtr, llvm.PtrToInt:
|
||||
// Bitcasts are ususally used to cast a pointer from one type to
|
||||
// Bitcasts are usually used to cast a pointer from one type to
|
||||
// another leaving the pointer itself intact.
|
||||
inst.name = llvmInst.Name()
|
||||
inst.operands = []value{
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ package interp
|
||||
// done in interp and results in a revert.
|
||||
//
|
||||
// Right now the memory is assumed to be little endian. This will need an update
|
||||
// for big endian arcitectures, if TinyGo ever adds support for one.
|
||||
// for big endian architectures, if TinyGo ever adds support for one.
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
|
||||
Reference in New Issue
Block a user