windows系统msys编译NVSim

⌚Time: 2023-04-09 21:57:58

👨‍💻Author: Jack Ge

mingw下载

https://www.mingw-w64.org/

下载完成后进行安装和配置环境变量,测试mingw安装成功的办法


gcc -v

make for windows

GNU Make For Windows

    Make is a useful tool in programming. That controls the generation of executables and other generated files of a program from the program's source files.

    This web page provides binary of GNU make for Windows for download. Equation Solution build the binary from GNU make. It is a free software under General Public License. The release of GNU compilers distributed at this site also includes GNU make. It is unnecessary to download the utility for GNU compilers. For users who need the make utility, download make.exe from the following links, and save it in the subdirectory \bin.

DOWNLOAD: OFFICIAL RELEASE FOR WINDOWS

    As mentioned previously, the binary of make is included in the GNU compilers distributed at this site. If you already downloaded GNU compilers, it is unnecessary to download the make utility. The following has links to download 32-bit and 64-bit binaries. 64-bit binary only works on 64-bit Windows.

将下载的make.exe放入mingw的bin目录

msys2

https://www.msys2.org/

为了让msys2能够继承windows系统的环境变量,打开msys2_shell.bat


rem set MSYS2_PATH_TYPE=inherit

改为


set MSYS2_PATH_TYPE=inherit

并且点击msys2_shell.bat启动msys2

开始编译


cd /c/NVSim-master/NVSim-master

make

编译完成