/avatar.webp

GinShio

How To Build Mesa for AMD

Whatcopy from Wikipidia: Mesa is an open source implementation of OpenGL, Vulkan, and other graphics API specifications. Mesa translates these specifications to vendor-specific graphics hardware drivers. Vendor DriversMesa is UMD (User mode driver), provides implementation of graphics API and shader compiler. Mesa is like a mono repository, different vendor drivers and graphics APIs are in different directories. Gallium is a driver project in mesa, includes many backends for hardwares:

数据抽象

容器 Lists在 scheme 中一类最基础的异构数据结构即 list 1 2 (list 1 2 3 "str") '(1 2 3 "str") 当然 list 可以看作是个二元组 pair,也有称作 dotlist 1 2 3 4 5 6 7 8 (cons 1 2) ;; '(1

优化简介

优化背景上世纪 80 年代早期优化在编译器开发中还是一个可选特性,一般在其他部分都完成后才会添加到编译器中。因此出现了调试编译器和优化编译器的区别

中间表示

编译器通常组织为一连串的处理 pass,在每两个 pass 之间需要将已知的所有信息进行传递,因此编译器需要中间表示 (IR, Intermediate Representation) 表达信息。IR 在编译器中可能是

CS61A 入门

虽然 CS61A 使用 Python 进行教学,但我希望好好学一下 Erlang 和 Scheme。如果想查看更多关于 CS61A 的信息,请访问 课程主页,当然我也会将一部分内容和实现放在自己的

内存对齐

众所周知,运行的程序是需要内存占用的,在编码时假定栈上的空间是连续的,且定义的所有变量都连续分布在栈上。 实际上,虽然变量是连续分布在栈上的,