linux.txt
来自「《虚拟机的设计与实现c/cpp》(linux平台)源码 好东西大家熟知不多说」· 文本 代码 · 共 64 行
TXT
64 行
Overview of HEC on Linux------------------------There are 4 script files which you can use to build and maintain HEC1) bldall.sh - makes all the Linux binaries2) mvbin.sh - moves all the Linux binaries to the ${BLDROOT}/bin directory3) wipe.sh - deletes all the Linux binaries4) bldapps.sh - builds the test application .RUN files
Mount the CD-ROM and copy the linux directory tree to your filesystem mount /dev/cdrom /root/cdrom cp -r /root/cdrom/linux ./hec umount /dev/cdromOnce you have copied the linux directory tree from the CD to your harddrive, you will need to use the chmod command to make these scripts executable.For example: chmod +x ./bldall.sh
Also, to run these scripts you will need to edit them so that $BLDROOTenvironmental variable points to the linux directory ( i.e. the directory containing the bin, hasm, hecvm subdirectories ). For example: BLDROOT=/root/hec/linuxBuilding HEC------------From the ${BLDROOT} directory, run the following scripts in the order specified i) bldall.sh ii) mvbin.shThis will build all the native Linux binaries and move them to the ${BLDROOT}/bin directory. It may be a wise idea to add the ${BLDROOT}/bindirectory to your $PATH.Taking HEC for a spin---------------------
Go to the ${BLDROOT}/hasm/testapps and run the bldapps.sh script. This willinvoke the HASM assembler and assemble all the applications. If you want to assemble a HEC assembly source file, you will need to issuea command similar to: ..\..\bin\hasm timedate.asm ( in general, path\hasm asmfile.asm )Note, you will need to issue this command from the directory containing theassembly source file. In addition, you cannot prefix the file name. ..\..\bin\hasm ./timedate.asm ( this is INVALID ) To run an application, you will need to issue a command similar to: ..\..\bin\hecvm timedate.RUN
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?