Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for assemble (0.17 sec)

  1. src/cmd/asm/internal/flags/flags.go

    	AllErrors  = flag.Bool("e", false, "no limit on number of errors reported")
    	SymABIs    = flag.Bool("gensymabis", false, "write symbol ABI information to output file, don't assemble")
    	Importpath = flag.String("p", obj.UnlinkablePkg, "set expected package import to path")
    	Spectre    = flag.String("spectre", "", "enable spectre mitigations in `list` (all, ret)")
    )
    
    var DebugFlags struct {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 19:18:23 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/asm/doc.go

    		after consulting $GOROOT/pkg/$GOOS_$GOARCH.
    	-S
    		Print assembly and machine code.
    	-V
    		Print assembler version and exit.
    	-debug
    		Dump instructions as they are parsed.
    	-dynlink
    		Support references to Go symbols defined in other shared libraries.
    	-e
    		No limit on number of errors reported.
    	-gensymabis
    		Write symbol ABI information to output file. Don't assemble.
    	-o file
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 20:46:45 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/endtoend_test.go

    	var ok bool
    	testOut = new(strings.Builder) // The assembler writes test output to this buffer.
    	ctxt.Bso = bufio.NewWriter(os.Stdout)
    	ctxt.IsAsm = true
    	defer ctxt.Bso.Flush()
    	failed := false
    	ctxt.DiagFunc = func(format string, args ...interface{}) {
    		failed = true
    		t.Errorf(format, args...)
    	}
    	pList.Firstpc, ok = parser.Parse()
    	if !ok || failed {
    		t.Errorf("asm: %s assembly failed", goarch)
    		return
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/asm.go

    			targetAddr.Type = obj.TYPE_REG
    		}
    	case target.Type == obj.TYPE_CONST:
    		// JMP $4
    		*targetAddr = a[0]
    	case target.Type == obj.TYPE_NONE:
    		// JMP
    	default:
    		p.errorf("cannot assemble jump %+v", target)
    		return
    	}
    
    	p.append(prog, cond, true)
    }
    
    func (p *Parser) patch() {
    	for _, patch := range p.toPatch {
    		targetProg := p.labels[patch.label]
    		if targetProg == nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  5. cmd/encryption-v1.go

    		err = errors.New("Object is not encrypted")
    		return
    	}
    
    	if rs == nil {
    		// No range, so offsets refer to the whole object.
    		return 0, o.Size, 0, 0, 0, nil
    	}
    
    	// Assemble slice of (decrypted) part sizes in `sizes`
    	var sizes []int64
    	var decObjSize int64 // decrypted total object size
    	if o.isMultipart() {
    		sizes = make([]int64, len(o.Parts))
    		for i, part := range o.Parts {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  6. internal/s3select/sql/funceval.go

    	}
    	inferTypeAsString(v1)
    	s, ok := v1.ToString()
    	if !ok {
    		err := fmt.Errorf("Incorrect argument type passed to %s", sqlFnSubstring)
    		return nil, errIncorrectSQLFunctionArgumentType(err)
    	}
    
    	// Assemble other arguments
    	arg2, arg3 := e.From, e.For
    	// Check if the second form of substring is being used
    	if e.From == nil {
    		arg2, arg3 = e.Arg2, e.Arg3
    	}
    
    	// Evaluate the FROM argument
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  7. cmd/object-api-utils.go

    				if err == nil {
    					decReader = rah
    					cFns = append([]func(){func() {
    						rah.Close()
    					}}, cFns...)
    				}
    			}
    			oi.Size = decLength
    
    			// Assemble the GetObjectReader
    			r = &GetObjectReader{
    				ObjInfo:    oi,
    				Reader:     decReader,
    				cleanUpFns: cFns,
    			}
    			return r, nil
    		}
    
    	case isEncrypted:
    		var seqNumber uint32
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  8. src/cmd/asm/internal/lex/lex.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package lex implements lexical analysis for the assembler.
    package lex
    
    import (
    	"fmt"
    	"log"
    	"os"
    	"strings"
    	"text/scanner"
    
    	"cmd/internal/src"
    )
    
    // A ScanToken represents an input item. It is a simple wrapping of rune, as
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/parse.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package asm implements the parser and instruction generator for the assembler.
    // TODO: Split apart?
    package asm
    
    import (
    	"fmt"
    	"io"
    	"log"
    	"os"
    	"strconv"
    	"strings"
    	"text/scanner"
    	"unicode/utf8"
    
    	"cmd/asm/internal/arch"
    	"cmd/asm/internal/flags"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  10. src/cmd/asm/main.go

    			break
    		}
    	}
    	if ok && !*flags.SymABIs {
    		ctxt.NumberSyms()
    		obj.WriteObjFile(ctxt, buf)
    	}
    	if !ok || diag {
    		if failedFile != "" {
    			log.Printf("assembly of %s failed", failedFile)
    		} else {
    			log.Print("assembly failed")
    		}
    		buf.Close()
    		os.Remove(*flags.OutputFile)
    		os.Exit(1)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 2.7K bytes
    - Viewed (0)
Back to top