command to assemble in a makefile:

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

command to assemble in a makefile:

ソリューションへジャンプ
1,778件の閲覧回数
raghav_sarma
Contributor I
Hallo,
 
I'm building my application by using make and not sure of the command to convert an assembly file, Do_On_Stack.asm, to an object file - Do_On_Stack.o using the assembler.
 
i.e. the command in the makefile will be something like:
 
Do_On_Stack.o : Do_On_Stack.asm
                       $(ASSEMBLER) XXXX
 
where: (ASSEMBLER) - is a variable pointing to the location of the assembler exe file ahc12.exe and XXX are the instructions that I'm looking for.
 
What is this command and what arguments, options must be given to the assembler? I'm using the cygwin shell which attempts to provide unix like functionality on a Windows machine.
 
Raghav
 
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,065件の閲覧回数
CompilerGuru
NXP Employee
NXP Employee
Have a look in any assmebly HC12 project in the CW ide, there in the compiler/linker/assembler settings is a checkbox "show command line" (or similar) which dumps the complete command line used by this tool to the message window.
Note that the content of the message window can be copied with ctrl-c.
Of course you don't need all the options as used in CW, for example it passes to many access paths to the tools.

Daniel

PS: If you do not have a project, create one with the wizard.

BTW. the tools support both UNIX style / and dos style \ directory separators. I always had problems with the dos style because cygwin's sh treats them as escape character, so best if you work only with UNIX style paths.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,066件の閲覧回数
CompilerGuru
NXP Employee
NXP Employee
Have a look in any assmebly HC12 project in the CW ide, there in the compiler/linker/assembler settings is a checkbox "show command line" (or similar) which dumps the complete command line used by this tool to the message window.
Note that the content of the message window can be copied with ctrl-c.
Of course you don't need all the options as used in CW, for example it passes to many access paths to the tools.

Daniel

PS: If you do not have a project, create one with the wizard.

BTW. the tools support both UNIX style / and dos style \ directory separators. I always had problems with the dos style because cygwin's sh treats them as escape character, so best if you work only with UNIX style paths.
0 件の賞賛
返信