一、debug和release在汇编上的区别
![894719-a45d184408ad6aa1.png](https://upload-images.jianshu.io/upload_images/894719-a45d184408ad6aa1.png)
image.png
debug和release在汇编上的区别。
代码区别1:
debug:代码的本质,为了便于调试;
release:直接算出结果,减少汇编指令 。
![894719-38acf5697af7b59a.png](https://upload-images.jianshu.io/upload_images/894719-38acf5697af7b59a.png)
代码
![894719-93fd65e1949394a0.png](https://upload-images.jianshu.io/upload_images/894719-93fd65e1949394a0.png)
二、if else
![894719-77a0a04ee13f8e8b.png](https://upload-images.jianshu.io/upload_images/894719-77a0a04ee13f8e8b.png)
image.png
![894719-38ab154615be0e41.png](https://upload-images.jianshu.io/upload_images/894719-38ab154615be0e41.png)
debug版本
![894719-c3013e9ee131c767.png](https://upload-images.jianshu.io/upload_images/894719-c3013e9ee131c767.png)
release版本直接打印结果
三、for循环
![894719-843a09121cc46fc5.png](https://upload-images.jianshu.io/upload_images/894719-843a09121cc46fc5.png)
image.png
![894719-d09d60506d41e476.png](https://upload-images.jianshu.io/upload_images/894719-d09d60506d41e476.png)
debug版本:for循环或者while循环
![894719-1efddd9f3c31f397.png](https://upload-images.jianshu.io/upload_images/894719-1efddd9f3c31f397.png)
release版本:for循环或者while循环
release版本是向目标看齐的。