comparison lwasm/pragma.c @ 343:98f3e016cfd8

Add pragma to turn off forward reference optimization Much source code doesn't benefit much, if at all, from forward reference optimization. Add "pragma forwardrefmax" to turn off such optimization in the event that it is not required and long assembly times result.
author William Astle <lost@l-w.ca>
date Mon, 16 Mar 2015 09:27:20 -0600
parents 507f442dc71e
children c6d2a1f54e0c
comparison
equal deleted inserted replaced
342:12e2453f8417 343:98f3e016cfd8
59 { "export", "noexport", PRAGMA_EXPORT }, 59 { "export", "noexport", PRAGMA_EXPORT },
60 { "symbolnocase", "nosymbolnocase", PRAGMA_SYMBOLNOCASE }, 60 { "symbolnocase", "nosymbolnocase", PRAGMA_SYMBOLNOCASE },
61 { "nosymbolcase", "symbolcase", PRAGMA_SYMBOLNOCASE }, 61 { "nosymbolcase", "symbolcase", PRAGMA_SYMBOLNOCASE },
62 { "condundefzero", "nocondundefzero", PRAGMA_CONDUNDEFZERO }, 62 { "condundefzero", "nocondundefzero", PRAGMA_CONDUNDEFZERO },
63 { "6800compat", "no6800compat", PRAGMA_6800COMPAT }, 63 { "6800compat", "no6800compat", PRAGMA_6800COMPAT },
64 { "forwardrefmax", "noforwardrefmax", PRAGMA_FORWARDREFMAX },
64 { 0, 0, 0} 65 { 0, 0, 0}
65 }; 66 };
66 67
67 int parse_pragma_string(asmstate_t *as, char *str, int ignoreerr) 68 int parse_pragma_string(asmstate_t *as, char *str, int ignoreerr)
68 { 69 {