Prevoir d'avoir des options de ligne de commande specifiques a un processeur

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5304 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Xavier Leroy 2002-11-29 15:03:37 +00:00
parent 2f698390a5
commit 2413371d18
8 changed files with 34 additions and 2 deletions

View File

@ -17,6 +17,10 @@
open Misc open Misc
open Format open Format
(* Machine-specific command-line options *)
let command_line_options = []
(* Addressing modes *) (* Addressing modes *)
type addressing_mode = type addressing_mode =

View File

@ -17,6 +17,10 @@
open Misc open Misc
open Format open Format
(* Machine-specific command-line options *)
let command_line_options = []
(* Addressing modes *) (* Addressing modes *)
type addressing_mode = type addressing_mode =

View File

@ -17,6 +17,12 @@
open Misc open Misc
open Format open Format
(* Machine-specific command-line options *)
let command_line_options = []
(* Specific operations *)
type specific_operation = type specific_operation =
Ishift1add Ishift1add
| Ishift2add | Ishift2add

View File

@ -12,6 +12,10 @@
(* $Id$ *) (* $Id$ *)
(* Machine-specific command-line options *)
let command_line_options = []
(* Specific operations for the Intel 386 processor *) (* Specific operations for the Intel 386 processor *)
open Misc open Misc

View File

@ -17,6 +17,10 @@
open Misc open Misc
open Format open Format
(* Machine-specific command-line options *)
let command_line_options = []
(* Addressing modes -- only one! (register with no displacement) *) (* Addressing modes -- only one! (register with no displacement) *)
type addressing_mode = Iindexed type addressing_mode = Iindexed

View File

@ -17,6 +17,10 @@
open Misc open Misc
open Format open Format
(* Machine-specific command-line options *)
let command_line_options = []
(* Addressing modes *) (* Addressing modes *)
type addressing_mode = type addressing_mode =

View File

@ -17,6 +17,12 @@
open Misc open Misc
open Format open Format
(* Machine-specific command-line options *)
let command_line_options = []
(* Specific operations *)
type specific_operation = type specific_operation =
Imultaddf (* multiply and add *) Imultaddf (* multiply and add *)
| Imultsubf (* multiply and subtract *) | Imultsubf (* multiply and subtract *)

View File

@ -76,7 +76,7 @@ let main () =
c_linker := Config.native_c_linker; c_linker := Config.native_c_linker;
let ppf = Format.err_formatter in let ppf = Format.err_formatter in
try try
Arg.parse [ Arg.parse (Arch.command_line_options @ [
"-a", Arg.Set make_archive, " Build a library"; "-a", Arg.Set make_archive, " Build a library";
"-c", Arg.Set compile_only, " Compile only (do not link)"; "-c", Arg.Set compile_only, " Compile only (do not link)";
"-cc", Arg.String(fun s -> c_compiler := s; c_linker := s), "-cc", Arg.String(fun s -> c_compiler := s; c_linker := s),
@ -176,7 +176,7 @@ let main () =
"-dstartup", Arg.Set keep_startup_file, " (undocumented)"; "-dstartup", Arg.Set keep_startup_file, " (undocumented)";
"-", Arg.String (process_file ppf), "-", Arg.String (process_file ppf),
"<file> Treat <file> as a file name (even if it starts with `-')" "<file> Treat <file> as a file name (even if it starts with `-')"
] (process_file ppf) usage; ]) (process_file ppf) usage;
if !make_archive then begin if !make_archive then begin
Optcompile.init_path(); Optcompile.init_path();
Asmlibrarian.create_archive (List.rev !objfiles) Asmlibrarian.create_archive (List.rev !objfiles)