For those of you who tried but didn't succed, I found some straigthforward instructions for this.
Install cygwin to "c:\cygwin" - make sure to check boxes to install Perl, "Archive" (ZIP), and Devel/gcc:g++ (22.214.171.124 presumably) (is Perl necessary?)
Copy the alchemy directory to: c:\cygwin\home\Lee
Copy the flex sdk bin dir from c:\program files\etc to "c:\flex" (to avoid paths with spaces in it!)
Run the alchemy config script once:
run cygwin cd alchemy ./config
Edit the textfile "C:\cygwin\home\Lee\alchemy\alchemy-setup" and uncomment and edit line 22 to: add "export ADL=c:\flex\adl.exe"
Edit .bashrc (in C:\cygwin\home\Lee)
echo "LEE PROFILE" export FLEX_HOME=~/flex export ALCHEMY_HOME=~/alchemy # "This should be added before your PATH is modified" !! source /home/Lee/alchemy/alchemy-setup PATH=$ALCHEMY_HOME/achacks:/home/Lee/flex:$PATH export PATH alc-on
Do this (just once, I think):
cd $ALCHEMY_HOME/bin ln -s llvm-stub llvm-stub.exe
Compiling a SW:
CD to the directory with the source
Always do "alc-on" before compiling, cuz it doesn't work without it even though i added it to the startup (dunno)
gcc stringecho.c -O3 -Wall -swc -o stringecho.swc -- should give you a swc.
Import the swc into your flex builder 4 project and make sure compiler targets SDK v4
alc-home - takes you to the Alchemy install folder.
alc-on - puts Alchemy gcc toolchain replacements at the front of your path.
alc-off - restores original path.
alc-util - shows you various Alchemy-related environment vars
USEFUL TO KNOW
which gcc - tells you which gcc it will use (should be the one in the achacks dir)
ln - links shit
rm - deletes links as well as files
Ugh: Make sure to do "alc-on" and "alchemy-setup" even though you put it in the startup script 🙁 (?)