#include "newalloc.h"
-#ifdef _BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
#define _ENDIAN(x) (3-x)
#else
#define _ENDIAN(x) (x)
/* it is type float */
fl.f = (float) floatFromVal(val);
-#ifdef _BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
return fl.c[3-offset];
#else
return fl.c[offset];
/* print extra debug info if required */
if (options.debug || sym->level == 0)
{
-
- cdbSymbol (sym, cdbFile, FALSE, FALSE);
-
if (!sym->level) /* global */
if (IS_STATIC (sym->etype))
fprintf (map->oFile, "F%s_", moduleName); /* scope is file */
/* print extra debug info if required */
if (options.debug || sym->level == 0)
{
- /* NOTE to me - cdbFile may be null in which case,
- * the sym name will be printed to stdout. oh well */
- if(cdbFile)
- cdbSymbol (sym, cdbFile, FALSE, FALSE);
-
if (!sym->level)
{ /* global */
if (IS_STATIC (sym->etype))
/* print extra debug info if required */
if (options.debug || sym->level == 0)
{
-
- cdbSymbol (sym, cdbFile, FALSE, FALSE);
-
if (!sym->level)
{ /* global */
if (IS_STATIC (sym->etype))
/* print the global struct definitions */
if (options.debug)
- cdbStructBlock (0,cdbFile);
+ cdbStructBlock (0);
vFile = tempfile();
/* PENDING: this isnt the best place but it will do */
/* now put it all together into the assembler file */
/* create the assembler file name */
- if (!options.c1mode) {
- sprintf (buffer, srcFileName);
- strcat (buffer, ".asm");
- }
- else {
- strcpy(buffer, options.out_name);
- }
+ if ((noAssemble || options.c1mode) && fullDstFileName)
+ {
+ sprintf (buffer, fullDstFileName);
+ }
+ else
+ {
+ sprintf (buffer, dstFileName);
+ strcat (buffer, ".asm");
+ }
if (!(asmFile = fopen (buffer, "w"))) {
werror (E_FILE_OPEN_ERR, buffer);