Delphi 7宏预处理器支持 [英] Delphi 7 macro preprocessor support

查看:99
本文介绍了Delphi 7宏预处理器支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Delphi 7是否有宏预处理器?

Is there a macro preprocessor for Delphi 7?

没有内置的,所以也许可以使用第三方或其他语言的预处理器(例如c预处理器).

There isn't one built in so maybe there's a possibilty to use a third party or some other languages preprocessor (like c preprocessor).

如果有一个,如何为Delphi 7进行设置?

If there's one, how to set it up for Delphi 7?

我正在尝试进行函数内联(为了速度).宏预处理器似乎是delphi的唯一简单选择.

I'm trying to do function inlining (for speed). Macro preprocessor seems to be the only easy option for delphi.

谢谢, 埃贡

推荐答案

在编译代码之前,您始终可以在代码上运行外部宏处理器,例如m4或什至(抖动)cpp.但是,我不建议这样做-根据我的经验,内联的好处(这似乎是您想要做的)很小,并且可以因代码大小增加导致的速度降低而抵消.

You can always run an external macro processor, such as m4 or even (shudder) cpp on your code before you compile it. I wouldn't recommend this however - in my experience the benefits of inlining (which is what you seem to want to do) are quite small, and can be offset by slowdowns caused increases in code size.

这篇关于Delphi 7宏预处理器支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆