SHマイコンで、C言語のアセンブラコードを確認したくて以下の設定にしてみましたが、.src は出力されませんでした。そもそも「表示」って何でしょう?
![](https://motoplus4.com/blog/wp-content/uploads/2024/02/sh_asm1-1.png)
もしかして、コード表示で「逆アセンブル」のこと? 確かに Hew のデバッガ上では確認できるのですが、コンパイラ単体で使用する場合は困りますね。
![](https://motoplus4.com/blog/wp-content/uploads/2024/02/sh_asm2.png)
ビルド時の asmshの コマンドラインシーケンスを見てみると、”-list” の部分でしょうか?
![](https://motoplus4.com/blog/wp-content/uploads/2024/02/sh_asm3.png)
.lis を開いてみると、元々 .src のコードだけ出力されているので違いますね。
![](https://motoplus4.com/blog/wp-content/uploads/2024/02/sh_asm4.png)
他のオプションを探してみると、以下の部分ようです。
![](https://motoplus4.com/blog/wp-content/uploads/2024/02/sh_asm5-1.png)
![](https://motoplus4.com/blog/wp-content/uploads/2024/02/under_arrow2-2.png)
![](https://motoplus4.com/blog/wp-content/uploads/2024/02/sh_asm6-2.png)
出力された.lst を開いてみると、他ルネサスマイコンと同様にCコードとの対比形式で出力されていますね。
![](https://motoplus4.com/blog/wp-content/uploads/2024/02/sh_asm7.png)
SHで、C言語→アセンブラ展開を行うためのコマンドラインシーケンスは、
shc.exe ... -listfile=パス.lst ... 対象.c ...
でした。