how can I compile parse.y file to generate a 64 bit parse.tab.c file.
I want to create a 64 bit c++ type parser with bison and lex
-I have a parse.y file
-I compile it to genrate a parse.tab.cpp file
-I renamed it to parse.cpp and included it in my project
-I migrated this project to 64 bit
我是否需要使用64位bison exe分别编译此parse.y文件,然后将其包含在我的64位迁移项目中,或者应用程序将使用64位bison exe分离编译此parse.y文件的工作文件
答案 0 :(得分:1)
使用gcc你可以使用-m32或-m64选项在x86或x64位代码中交替编译
答案 1 :(得分:0)
为什么您认为生成的代码中会出现32/64问题?只需编译输出即可。