user@ubuntu-vm:~/nxc$ ./nbc -help †
Next Byte Codes Compiler version 1.0.1.b35 (1.0.1.35, built Sun Oct 19 11:21:14 CDT 2008)
Copyright (c) 2006, John Hansen
Syntax: nbc [options] filename [options]
-S=<portname>: specify port name (COMn or usb), resource name, or alias
-BT: use bluetooth (ブルートゥースを使用してください。)
-d: download program (ダウンロードプログラム)
-b: treat input file as a binary file (don't compile it) (バイナリーファイルとして入力ファイルを扱ってください。(コンパイルしません))
-q: quiet
-n: prevent the system file from being included
-D=<sym>[=<value>]: define macro <sym>
-x: decompile program
-Z[1|2]: turn on compiler optimizations
-O=<outfile> : specify output file(出力ファイルを指定)
-E=<filename> : write compiler errors to <filename>
-I=<path>: search <path> for include files
-nbc=<filename> : save NXC intermediate NBC code to <filename>
-L=<filename> : generate code listing to <filename>
-Y=<filename> : generate symbol table to <filename>
-w[-|+] : warnings off or on [default is off]
-EF : enhanced firmware
-safecall: NXC will wrap all function calls in Acquire/Release
-api: dump the API to stdout
-help : display command line options
45-legonxt.rules †
SUBSYSTEM=="usb_device", ACTION=="add", SYSFS{idVendor}=="0694",
SYSFS{idProduct}=="0002", SYMLINK+="legonxt-%k", GROUP="legonxt", MODE="0660", RUN+="/etc/udev/legonxt.sh"
legonxt.sh †
#!/bin/bash
# file name : legonxt.sh
#
GROUP=legonxt
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
chmod o-rwx "${DEVICE}"
chgrp "${GROUP}" "${DEVICE}"
chmod g+rw "${DEVICE}"
fi
./nxc.sh †
sudo addgroup legonxt
sudo adduser user legonxt
sudo cp 45-legonxt.rules /etc/udev/rules.d
sudo cp legonxt.sh /etc/udev
sudo chmod a+x /etc/udev/legonxt.sh
sudo ls /dev/ | grep legonxt
nbc -d -S=usb program.nxc