Delete dbg optimizer (won't be useful) and add "basic" (equiv. to NASM 2-pass)

optimizer.

svn path=/trunk/yasm/; revision=364
0.3
Peter Johnson 24 years ago
parent ce4a5fe02a
commit a7ce9bf2d1
  1. 2
      configure.ac
  2. 2
      configure.in
  3. 2
      libyasm/optimizer.h
  4. 2
      modules/optimizers/Makefile.am
  5. 8
      modules/optimizers/basic/basic-optimizer.c
  6. 8
      modules/optimizers/basic/optimizer.c
  7. 12
      modules/optimizers/dbg/Makefile.am
  8. 32
      modules/optimizers/dbg/optimizer.c
  9. 2
      src/optimizer.h
  10. 2
      src/optimizers/Makefile.am
  11. 8
      src/optimizers/basic/basic-optimizer.c
  12. 8
      src/optimizers/basic/optimizer.c
  13. 12
      src/optimizers/dbg/Makefile.am
  14. 32
      src/optimizers/dbg/optimizer.c

@ -210,7 +210,7 @@ AC_OUTPUT(Makefile
src/preprocs/Makefile
src/preprocs/raw/Makefile
src/optimizers/Makefile
src/optimizers/dbg/Makefile
src/optimizers/basic/Makefile
src/objfmts/Makefile
src/objfmts/dbg/Makefile
src/tests/Makefile

@ -210,7 +210,7 @@ AC_OUTPUT(Makefile
src/preprocs/Makefile
src/preprocs/raw/Makefile
src/optimizers/Makefile
src/optimizers/dbg/Makefile
src/optimizers/basic/Makefile
src/objfmts/Makefile
src/objfmts/dbg/Makefile
src/tests/Makefile

@ -38,6 +38,6 @@ struct optimizer {
};
/* Available optimizers */
extern optimizer dbg_optimizer;
extern optimizer basic_optimizer;
#endif

@ -1,3 +1,3 @@
# $IdPath$
SUBDIRS = dbg
SUBDIRS = basic

@ -1,5 +1,5 @@
/*
* Debugging optimizer (used to debug optimizer module interface)
* Basic optimizer (equivalent to the NASM 2-pass 'no optimizer' design)
*
* Copyright (C) 2001 Peter Johnson
*
@ -26,7 +26,7 @@ RCSID("$IdPath$");
/* Define optimizer structure -- see optimizer.h for details */
optimizer dbg_optimizer = {
"Trace of all info passed to optimizer module",
"dbg"
optimizer basic_optimizer = {
"Only the most basic optimizations",
"basic"
};

@ -1,5 +1,5 @@
/*
* Debugging optimizer (used to debug optimizer module interface)
* Basic optimizer (equivalent to the NASM 2-pass 'no optimizer' design)
*
* Copyright (C) 2001 Peter Johnson
*
@ -26,7 +26,7 @@ RCSID("$IdPath$");
/* Define optimizer structure -- see optimizer.h for details */
optimizer dbg_optimizer = {
"Trace of all info passed to optimizer module",
"dbg"
optimizer basic_optimizer = {
"Only the most basic optimizations",
"basic"
};

@ -1,12 +0,0 @@
# $IdPath$
noinst_LIBRARIES = liboptimizer.a
liboptimizer_a_SOURCES = \
optimizer.c
INCLUDES = \
-I$(top_srcdir)/src \
-I$(top_builddir)/intl
CFLAGS = @ANSI_CFLAGS@

@ -1,32 +0,0 @@
/*
* Debugging optimizer (used to debug optimizer module interface)
*
* Copyright (C) 2001 Peter Johnson
*
* This file is part of YASM.
*
* YASM is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* YASM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "util.h"
RCSID("$IdPath$");
#include "optimizer.h"
/* Define optimizer structure -- see optimizer.h for details */
optimizer dbg_optimizer = {
"Trace of all info passed to optimizer module",
"dbg"
};

@ -38,6 +38,6 @@ struct optimizer {
};
/* Available optimizers */
extern optimizer dbg_optimizer;
extern optimizer basic_optimizer;
#endif

@ -1,3 +1,3 @@
# $IdPath$
SUBDIRS = dbg
SUBDIRS = basic

@ -1,5 +1,5 @@
/*
* Debugging optimizer (used to debug optimizer module interface)
* Basic optimizer (equivalent to the NASM 2-pass 'no optimizer' design)
*
* Copyright (C) 2001 Peter Johnson
*
@ -26,7 +26,7 @@ RCSID("$IdPath$");
/* Define optimizer structure -- see optimizer.h for details */
optimizer dbg_optimizer = {
"Trace of all info passed to optimizer module",
"dbg"
optimizer basic_optimizer = {
"Only the most basic optimizations",
"basic"
};

@ -1,5 +1,5 @@
/*
* Debugging optimizer (used to debug optimizer module interface)
* Basic optimizer (equivalent to the NASM 2-pass 'no optimizer' design)
*
* Copyright (C) 2001 Peter Johnson
*
@ -26,7 +26,7 @@ RCSID("$IdPath$");
/* Define optimizer structure -- see optimizer.h for details */
optimizer dbg_optimizer = {
"Trace of all info passed to optimizer module",
"dbg"
optimizer basic_optimizer = {
"Only the most basic optimizations",
"basic"
};

@ -1,12 +0,0 @@
# $IdPath$
noinst_LIBRARIES = liboptimizer.a
liboptimizer_a_SOURCES = \
optimizer.c
INCLUDES = \
-I$(top_srcdir)/src \
-I$(top_builddir)/intl
CFLAGS = @ANSI_CFLAGS@

@ -1,32 +0,0 @@
/*
* Debugging optimizer (used to debug optimizer module interface)
*
* Copyright (C) 2001 Peter Johnson
*
* This file is part of YASM.
*
* YASM is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* YASM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "util.h"
RCSID("$IdPath$");
#include "optimizer.h"
/* Define optimizer structure -- see optimizer.h for details */
optimizer dbg_optimizer = {
"Trace of all info passed to optimizer module",
"dbg"
};
Loading…
Cancel
Save