I want to build sdcc for NMK322 so that my students can use EXACTLY what I have. So, here we go again:
Installing MinGW:
C:\Users\Public\Tool
C:\Users\Public\Tool\mingw\bin\mingw-get.exe
cd C:\Users\Public\Tool\mingw\var\lib\mingw-get\data\
copy defaults.xml profile.xml
cd C:\Users\Public\Tool\mingw\bin\
mingw-get.exe update
mingw-get.exe install gcc g++ gmp mpfr mpc msys msys-wget-bin
mingw-get.exe install mingw-get
mingw-get
Note20220808 Current software versions {gcc:9.2.0,binutils:2.32}
Some useful things to do:
C:\Users\Public\Tool\Git
C:\Users\Public\Tool\mingw\msys\1.0\etc\profile
and insert MY1GITPATH="/c/users/public/tool/git/bin" [ -d "$MY1GITPATH" ] && PATH="$MY1GITPATH:$PATH"
before the block containing an export PATH
line(s)
C:\Users\Public\Tool\mingw
msys.vbs
(*Hint*: double-click) will install (or remove if already installed) a pop-up context menu entry (MinGW Shell) whenever you right-click on a folder in Windows ExplorerC:\Users\Public\Tool\mingw\msys\1.0\etc\profile
and comment (place '#' at the beginning of) the last line with cd $HOME
commandmingw-setup.bat
sets up normal command prompt for command-line compilationmingw-term.bat
script (form tools folder) in any folder - when executed, it will open a command prompt (with MinGW path properly configured) in that foldermingw-clear.bat
cleans up settings created by mingw-setup.bat