Pages

Tuesday, January 13, 2026

Rust Macro

Rust macro is an interesting topic and it provides a way to generate code on the fly. One of the problem for Rust programmer is the code is not easy to understand, especially for compiler and low level programming. 

The code is located at ttliu2000/rust_macro: Rust macro project to make rust programming easier. which making my assembler / linker project code simpler. My background is C# and I will keep everything private and use accessor methods to access the code, which is heavy boilerplate code. Using the macro make the code more readable. 

Thanks to ChatGPT's help, I quickly start the project and get the feature in. So if you start to create macro, ask GPT first. 

No comments: