In armcc user guide I learned that description of --debug and -g are quite similar. Is --debug option equivalent to -g option in armcc?
Hello: Essentially yes, this enables debug info to allow source level debug.
Note that with armcc, --debug (or -g) does not affect optimization level. With some compilers, -g implies minimal optimization (-O0).