Added new compiler options to support the Java backend and

Estimated hours taken: 4

Added new compiler options to support the Java backend and
updated documentation to reflect this.

compiler/globals.m:
	Removed comment about Java backend not being implemented.
	Replaced it by one say that it is work in progress.

compiler/mercury_compile.m:
	If Target = java then call the Java backend.

compiler/options.m:
	Added new options for compiling Java files:
	`--java'
	`--java-only'
	`--java-compiler' ('--javac')
	`--java-flags'
	`--java-classpath'
	`--java-object-file-extension'

compiler/handle_options.m:
	If compiling to Java then don't link.
	Added "java" grade.

compiler/mlds_to_java.m
	New file.
	XXX Currently just prints an error message about
	    the Java backend not being implemented.

doc/user_guide.texi:
	Documented new options for compiling Java files.

scripts/init_grade_options.sh-subr:
scripts/parse_grade_options.sh-subr:
scripts/final_grade_options.sh-subr:
	Added support for "java" grade.
This commit is contained in:
Julien Fischer
2001-01-29 01:55:08 +00:00
parent 81d6a2316b
commit 9602919bbe
9 changed files with 246 additions and 21 deletions

View File

@@ -39,9 +39,9 @@ case $stack_trace,$require_tracing,$use_minimal_model in
esac
#
# --target asm or IL implies --high-level-code
# --target asm, IL or Java implies --high-level-code
#
case $target in asm|il)
case $target in asm|il|java)
highlevel_code=true ;;
esac