aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp
diff options
context:
space:
mode:
authorshivay <[email protected]>2023-03-24 12:22:18 +0100
committerDamian Gryski <[email protected]>2023-03-24 09:22:38 -0700
commitd73e12db633fb7db2cb219afe822db645eaf85df (patch)
tree7e7d41dfcc5f9b0cc80a0bb2494048b3128d610d /interp
parent4b0e56cbec91a2b4e26b362493bc552e72803da6 (diff)
downloadtinygo-d73e12db633fb7db2cb219afe822db645eaf85df.tar.gz
tinygo-d73e12db633fb7db2cb219afe822db645eaf85df.zip
feat: fix typos
Diffstat (limited to 'interp')
-rw-r--r--interp/README.md4
-rw-r--r--interp/compiler.go2
-rw-r--r--interp/memory.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/interp/README.md b/interp/README.md
index 5ada617c3..c0a794cc7 100644
--- a/interp/README.md
+++ b/interp/README.md
@@ -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.
diff --git a/interp/compiler.go b/interp/compiler.go
index ffef69e56..f0a096862 100644
--- a/interp/compiler.go
+++ b/interp/compiler.go
@@ -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{
diff --git a/interp/memory.go b/interp/memory.go
index 9a28f1d49..f96387062 100644
--- a/interp/memory.go
+++ b/interp/memory.go
@@ -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"