In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "what is the principle of tinygo compilation". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the principle of tinygo compilation".
Description
Tinygo itself is a compiler + tool for microcontrollers, which can be build or flush.
Tinygo relies on its own go-llvm
The implementation of tinygo depends on its own go-llvm, which is actually a binding of go of llvm, and ultimately depends on the llvm of the system.
A basic compiler is implemented through go-llvm/llvm.
Tinygo is based on go compiler and implements a basic compiler through go-llvm/llvm, so the syntax and features supported are mainly similar to go.
For example, the sending of channel:
Compiler/channel.go
37 c.createRuntimeCall ("chanSend", [] llvm.Value {coroutine, ch, valueAllocaCast, valueSize}, ") 3839 / / End the lifetime of the alloca.
Src/runtime/chan.go
44 / / chanSend sends a single value over the channel. If this operation can45 / / complete immediately (there is a goroutine waiting for a value), it sends the46 / / value and re-activates both goroutines. If not, it sets itself as waiting on47 / / a value.48 func chanSend (sender * coroutine, ch * channel, value unsafe.Pointer, size uintptr) {Thank you for reading, this is the content of "what is the principle of tinygo compilation". After the study of this article, I believe you have a deeper understanding of what the principle of tinygo compilation is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.