在汇编文件上运行C预处理程序? [英] Run C preprocessor on assembler files?

查看:67
本文介绍了在汇编文件上运行C预处理程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.我正在使用Visual Studio 2012,并且正在尝试找到一种方法,以便在将asm文件传递给MASM之前,在asm文件上运行C预处理程序.

Hi.  I'm using Visual Studio 2012, and I'm trying to find a way to run the C preprocessor over an asm file before it's passed to MASM.

第一部分(运行C预处理程序)很简单,我只需要使用适当的选项运行cl:

The first part (running the C pre-processor) is easy, I just need to run cl with the appropriate options:

cl.exe/P EP/等.

cl.exe /P EP/ etc.

我已经在MasBuild BuildCustomizations文件夹中找到了masm构建规则,我的目的是复制这些规则并对其进行修改以执行此额外的预处理步骤.这就是我被困住的地方.我是否需要以某种方式依赖链 在一起,即:

I've located the masm build rules in the MSBuild BuildCustomizations folder, and it was my intent to take a copy of these and modify them to perform this extra preprocessing step.  This is where I'm stuck.  Do I need to somehow chain dependencies together, ie:

cl-> masm->链接

cl -> masm ->link

..还是可以修改命令行(当前仅调用masm.exe)以同时调用cl.exe和masm.exe?

.. or can I modify the command line (which currently just calls masm.exe) to invoke both cl.exe and then masm.exe?

推荐答案

我将请一些专家来解决这个问题,以查看他们是否可以为您提供帮助.可能会有一些时间延迟,感谢您的耐心配合.
 
感谢您的理解和支持.
 
最好的问候,

I will involve some experts into this issue to see whether they can help you out. There might be some time delay, appreciate for your patience.
 
Thank you for your understanding and support.
 
Best regards,


这篇关于在汇编文件上运行C预处理程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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