update format and add an option of gcc