我创建了我自己的(非常简单)密码语言,并建立了执行该语言的虚拟机器。 该公司进行罚款,但我现在要利用gcc(或任何其他可自由获得的汇编者)从正常的c方案中为这一机器编造密码。 因此,问题是,我如何修改或扩大优惠,以便它能够产生我自己的附庸法? 请注意,我真的NOT想要将我的附束代码编成机码,我想用“编织式”式编码(自称)代号。
I realize that this is a potentially large question, and it is possible that the best answer is "go look at the gcc source code". I just need some help with how to get started with this. I figure that there must be some articles or books on this subject that could describe the process to add a custom generator to gcc, but I haven t found anything by googling.