⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changes

📁 开源的nasm编译器源码,研究编译器原理很有帮且
💻
📖 第 1 页 / 共 4 页
字号:
Implemented common-variable alignment, and global-symbol type andsize declarations, in ELF.Implemented NEAR and FAR keywords for common variables, plusfar-common element size specification, in OBJ.Added a feature whereby EXTERNs and COMMONs in OBJ can be given adefault WRT specification (either a segment or a group).Transformed the Unix NASM archive into an auto-configuring package.Added a sanity-check for people applying SEG to things which arealready segment bases: this previously went unnoticed by the SEGprocessing and caused OBJ-driver panics later.Added the ability, in OBJ format, to deal with `MOV EAX,<segment>'type references: OBJ doesn't directly support dword-size segmentbase fixups, but as long as the low two bytes of the constant termare zero, a word-size fixup can be generated instead and it willwork.Added the ability to specify sections' alignment requirements inWin32 object files and pure binary files.Added preprocess-time expression evaluation: the %assign (and%iassign) directive and the bare %if (and %elif) conditional. Addedrelational operators to the evaluator, for use only in %ifconstructs: the standard relationals = < > <= >= <> (and C-likesynonyms == and !=) plus low-precedence logical operators &&, ^^ and||.Added a preprocessor repeat construct: %rep / %exitrep / %endrep.Added the __FILE__ and __LINE__ standard macros.Added a sanity check for number constants being greater than0xFFFFFFFF. The warning can be disabled.Added the %0 token whereby a variadic multi-line macro can tell howmany parameters it's been given in a specific invocation.Added %rotate, allowing multi-line macro parameters to be cycled.Added the `*' option for the maximum parameter count on multi-linemacros, allowing them to take arbitrarily many parameters.Added the ability for the user-level forms of EXTERN, GLOBAL andCOMMON to take more than one argument.Added the IMPORT and EXPORT directives in OBJ format, to deal withWindows DLLs.Added some more preprocessor %if constructs: %ifidn / %ifidni (exacttextual identity), and %ifid / %ifnum / %ifstr (token type testing).Added the ability to distinguish SHL AX,1 (the 8086 version) fromSHL AX,BYTE 1 (the 286-and-upwards version whose constant happens tobe 1).Added NetBSD/FreeBSD/OpenBSD's variant of a.out format, completewith PIC shared library features.Changed NASM's idiosyncratic handling of FCLEX, FDISI, FENI, FINIT,FSAVE, FSTCW, FSTENV, and FSTSW to bring it into line with theotherwise accepted standard. The previous behaviour, though it was adeliberate feature, was a deliberate feature based on amisunderstanding. Apologies for the inconvenience.Improved the flexibility of ABSOLUTE: you can now give it anexpression rather than being restricted to a constant, and it cantake relocatable arguments as well.Added the ability for a variable to be declared as EXTERN multipletimes, and the subsequent definitions are just ignored.We now allow instruction prefixes (CS, DS, LOCK, REPZ etc) to bealone on a line (without a following instruction).Improved sanity checks on whether the arguments to EXTERN, GLOBALand COMMON are valid identifiers.Added misc/exebin.mac to allow direct generation of .EXE files byhacking up an EXE header using DB and DW; also added test/binexe.asmto demonstrate the use of this. Thanks to Yann Guidon forcontributing the EXE header code.ndisasm forgot to check whether the input file had been successfullyopened. Now it does. Doh!Added the Cyrix extensions to the MMX instruction set.Added a hinting mechanism to allow [EAX+EBX] and [EBX+EAX] to beassembled differently. This is important since [ESI+EBP] and[EBP+ESI] have different default base segment registers.Added support for the PharLap OMF extension for 4096-byte segmentalignment.0.95 released July 1997-----------------------Fixed yet another ELF bug. This one manifested if the user relied onthe default segment, and attempted to define global symbols withoutfirst explicitly declaring the target segment.Added makefiles (for NASM and the RDF tools) to build Win32 consoleapps under Symantec C++. Donated by Mark Junker.Added `macros.bas' and `insns.bas', QBasic versions of the Perlscripts that convert `standard.mac' to `macros.c' and convert`insns.dat' to `insnsa.c' and `insnsd.c'. Also thanks to MarkJunker.Changed the diassembled forms of the conditional instructions sothat JB is now emitted as JC, and other similar changes. Suggestedlist by Ulrich Doewich.Added `@' to the list of valid characters to begin an identifierwith.Documentary changes, notably the addition of the `Common Problems'section in nasm.doc.Fixed a bug relating to 32-bit PC-relative fixups in OBJ.Fixed a bug in perm_copy() in labels.c which was causing exceptionsin cleanup_labels() on some systems.Positivity sanity check in TIMES argument changed from a warning toan error following a further complaint.Changed the acceptable limits on byte and word operands to allowthings like `~10111001b' to work.Fixed a major problem in the preprocessor which caused seg-faults ifmacro definitions contained blank lines or comment-only lines.Fixed inadequate error checking on the commas separating thearguments to `db', `dw' etc.Fixed a crippling bug in the handling of macros with operand countsdefined with a `+' modifier.Fixed a bug whereby object file formats which stored the input filename in the output file (such as OBJ and COFF) weren't doing socorrectly when the output file name was specified on the commandline.Removed [INC] and [INCLUDE] support for good, since they wereobsolete anyway.Fixed a bug in OBJ which caused all fixups to be output in 16-bit(old-format) FIXUPP records, rather than putting the 32-bit ones inFIXUPP32 (new-format) records.Added, tentatively, OS/2 object file support (as a minor variant onOBJ).Updates to Fox Cutter's Borland C makefile, Makefile.bc2.Removed a spurious second fclose() on the output file.Added the `-s' command line option to redirect all messages whichwould go to stderr (errors, help text) to stdout instead.Added the `-w' command line option to selectively suppress someclasses of assembly warning messages.Added the `-p' pre-include and `-d' pre-define command-line options.Added an include file search path: the `-i' command line option.Fixed a silly little preprocessor bug whereby starting a line with a`%!' environment-variable reference caused an `unknown directive'error.Added the long-awaited listing file support: the `-l' command lineoption.Fixed a problem with OBJ format whereby, in the absence of anyexplicit segment definition, non-global symbols declared in theimplicit default segment generated spurious EXTDEF records in theoutput.Added the NASM environment variable.From this version forward, Win32 console-mode binaries will beincluded in the DOS distribution in addition to the 16-bit binaries.Added Makefile.vc for this purpose.Added `return 0;' to test/objlink.c to prevent compiler warnings.Added the __NASM_MAJOR__ and __NASM_MINOR__ standard defines.Added an alternative memory-reference syntax in which prefixing anoperand with `&' is equivalent to enclosing it in square brackets,at the request of Fox Cutter.Errors in pass two now cause the program to return a non-zero errorcode, which they didn't before.Fixed the single-line macro cycle detection, which didn't work atall on macros with no parameters (caused an infinite loop). Alsochanged the behaviour of single-line macro cycle detection to worklike cpp, so that macros like `extrn' as given in the documentationcan be implemented.Fixed the implementation of WRT, which was too restrictive in thatyou couldn't do `mov ax,[di+abc wrt dgroup]' because (di+abc) wasn'ta relocatable reference.0.94 released April 1997------------------------Major item: added the macro processor.Added undocumented instructions SMI, IBTS, XBTS and LOADALL286. Alsoreorganised CMPXCHG instruction into early-486 and Pentium forms.Thanks to Thobias Jones for the information.Fixed two more stupid bugs in ELF, which were causing `ld' tocontinue to seg-fault in a lot of non-trivial cases.Fixed a seg-fault in the label manager.Stopped FBLD and FBSTP from _requiring_ the TWORD keyword, which isthe only option for BCD loads/stores in any case.Ensured FLDCW, FSTCW and FSTSW can cope with the WORD keyword, ifanyone bothers to provide it. Previously they complained unless nokeyword at all was present.Some forms of FDIV/FDIVR and FSUB/FSUBR were still inverted: avestige of a bug that I thought had been fixed in 0.92. This wasfixed, hopefully for good this time...Another minor phase error (insofar as a phase error can _ever_ beminor) fixed, this one occurring in code of the form   rol ax,forward_reference   forward_reference equ 1The number supplied to TIMES is now sanity-checked for positivity,and also may be greater than 64K (which previously didn't work on16-bit systems).Added Watcom C makefiles, and misc/pmw.bat, donated by Dominik Behr.Added the INCBIN pseudo-opcode.Due to the advent of the preprocessor, the [INCLUDE] and [INC]directives have become obsolete. They are still supported in thisversion, with a warning, but won't be in the next.Fixed a bug in OBJ format, which caused incorrect object records tobe output when absolute labels were made global.Updates to RDOFF subdirectory, and changes to outrdf.c.0.93 released January 1997--------------------------This release went out in a great hurry after semi-crippling bugswere found in 0.92.Really _did_ fix the stack overflows this time. *blush*Had problems with EA instruction sizes changing between passes, whenan offset contained a forward reference and so 4 bytes wereallocated for the offset in pass one; by pass two the symbol hadbeen defined and happened to be a small absolute value, so only 1byte got allocated, causing instruction size mismatch between passesand hence incorrect address calculations. Fixed.Stupid bug in the revised ELF section generation fixed (associatedstring-table section for .symtab was hard-coded as 7, even when thisdidn't fit with the real section table). Was causing `ld' toseg-fault under Linux.Included a new Borland C makefile, Makefile.bc2, donated by FoxCutter <lmb@comtch.iea.com>.0.92 released January 1997--------------------------The FDIVP/FDIVRP and FSUBP/FSUBRP pairs had been inverted: this wasfixed. This also affected the LCC driver.Fixed a bug regarding 32-bit effective addresses of the form[other_register+ESP].Documentary changes, notably documentation of the fact that BorlandWin32 compilers use `obj' rather than `win32' object format.Fixed the COMENT record in OBJ files, which was formattedincorrectly.Fixed a bug causing segfaults in large RDF files.OBJ format now strips initial periods from segment and groupdefinitions, in order to avoid complications with the local labelsyntax.Fixed a bug in disassembling far calls and jumps in NDISASM.Added support for user-defined sections in COFF and ELF files.Compiled the DOS binaries with a sensible amount of stack, toprevent stack overflows on any arithmetic expression containingparentheses.Fixed a bug in handling of files that do not terminate in a newline.0.91 released November 1996---------------------------Loads of bug fixes.Support for RDF added.Support for DBG debugging format added.Support for 32-bit extensions to Microsoft OBJ format added.Revised for Borland C: some variable names changed, makefile added.LCC support revised to actually work.JMP/CALL NEAR/FAR notation added.`a16', `o16', `a32' and `o32' prefixes added.Range checking on short jumps implemented.MMX instruction support added.Negative floating point constant support added.Memory handling improved to bypass 64K barrier under DOS.$ prefix to force treatment of reserved words as identifiers added.Default-size mechanism for object formats added.Compile-time configurability added.`#', `@', `~' and `?' are now valid characters in labels.`-e' and `-k' options in NDISASM added.0.90 released October 1996--------------------------First release version. First support for object file output. Otherchanges from previous version (0.3x) too numerous to document.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -