This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # download-buidl-and-install-ghdl.sh | |
| # | |
| # It took about 5 minutes on my laptop (2018-09-28). | |
| sudo apt update | |
| sudo apt install -y git make gnat zlib1g-dev | |
| git clone https://github.com/ghdl/ghdl | |
| cd ghdl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| sudo update-alternatives --remove-all gcc | |
| sudo update-alternatives --remove-all g++ | |
| sudo update-alternatives --remove-all clang | |
| sudo update-alternatives --remove-all clang++ | |
| sudo update-alternatives --remove-all cc | |
| sudo update-alternatives --remove-all c++ | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //C tcp server/client example | |
| // some of this is based on https://gist.github.com/oleksiiBobko/43d33b3c25c03bcc9b2b | |
| // which has a couple of problems in the time of writing this. | |
| // | |
| // this handles multiple clients without blocking, without threads, without multiprocessing, using poll() | |
| // | |
| // Author: github.com/nilput <[email protected]> | |
| // license: BSD-3 |
OlderNewer