Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Architecture (0.42 sec)

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

    // result against a golden file.
    
    func testEndToEnd(t *testing.T, goarch, file string) {
    	input := filepath.Join("testdata", file+".s")
    	architecture, ctxt := setArch(goarch)
    	architecture.Init(ctxt)
    	lexer := lex.NewLexer(input)
    	parser := NewParser(ctxt, architecture, lexer)
    	pList := new(obj.Plist)
    	var ok bool
    	testOut = new(strings.Builder) // The assembler writes test output to this buffer.
    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)
  2. src/cmd/asm/internal/asm/operand_test.go

    	buildcfg.GOOS = "linux" // obj can handle this OS for all architectures.
    	buildcfg.GOARCH = goarch
    	architecture := arch.Set(goarch, false)
    	if architecture == nil {
    		panic("asm: unrecognized architecture " + goarch)
    	}
    	ctxt := obj.Linknew(architecture.LinkArch)
    	ctxt.Pkgpath = "pkg"
    	return architecture, ctxt
    }
    
    func newParser(goarch string) *Parser {
    	architecture, ctxt := setArch(goarch)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  3. src/cmd/asm/main.go

    func main() {
    	log.SetFlags(0)
    	log.SetPrefix("asm: ")
    
    	buildcfg.Check()
    	GOARCH := buildcfg.GOARCH
    
    	flags.Parse()
    
    	architecture := arch.Set(GOARCH, *flags.Shared || *flags.Dynlink)
    	if architecture == nil {
    		log.Fatalf("unrecognized architecture %s", GOARCH)
    	}
    	ctxt := obj.Linknew(architecture.LinkArch)
    	ctxt.Debugasm = flags.PrintOut
    	ctxt.Debugvlog = flags.DebugV
    	ctxt.Flag_dynlink = *flags.Dynlink
    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)
  4. src/cmd/asm/internal/asm/pseudo_test.go

    		tests    []errtest
    	}{
    		{
    			allowABI: false,
    			tests:    nonRuntimeTests,
    		},
    		{
    			allowABI: true,
    			tests:    runtimeTests,
    		},
    	}
    
    	// Note these errors should be independent of the architecture.
    	// Just run the test with amd64.
    	parser := newParser("amd64")
    	var buf strings.Builder
    	parser.errorWriter = &buf
    
    	for _, cat := range testcats {
    		for _, test := range cat.tests {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/asm.go

    	"cmd/asm/internal/flags"
    	"cmd/asm/internal/lex"
    	"cmd/internal/obj"
    	"cmd/internal/obj/ppc64"
    	"cmd/internal/obj/riscv"
    	"cmd/internal/obj/x86"
    	"cmd/internal/sys"
    )
    
    // TODO: configure the architecture
    
    var testOut *strings.Builder // Gathers output when testing.
    
    // append adds the Prog to the end of the program-thus-far.
    // If doLabel is set, it also defines the labels collect for this Prog.
    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)
  6. src/cmd/asm/internal/asm/parse.go

    	}
    	c := p.peek()
    	if c == ':' || c == ',' || c == '+' {
    		// 2nd register; syntax (R1+R2) etc. No two architectures agree.
    		// Check the architectures match the syntax.
    		switch p.next().ScanToken {
    		case ',':
    			if !p.arch.InFamily(sys.ARM, sys.ARM64) {
    				p.errorf("(register,register) not supported on this architecture")
    				return
    			}
    		case '+':
    			if p.arch.Family != sys.PPC64 {
    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)
  7. src/cmd/asm/internal/arch/arch.go

    	"fmt"
    	"strings"
    )
    
    // Pseudo-registers whose names are the constant name without the leading R.
    const (
    	RFP = -(iota + 1)
    	RSB
    	RSP
    	RPC
    )
    
    // Arch wraps the link architecture object with more architecture-specific information.
    type Arch struct {
    	*obj.LinkArch
    	// Map of instruction names to enumeration.
    	Instructions map[string]obj.As
    	// Map of register names to enumeration.
    	Register map[string]int16
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  8. cmd/update.go

    			Message:    err.Error(),
    			StatusCode: http.StatusInternalServerError,
    		}
    	}
    	return resp.Body, nil
    }
    
    var updateInProgress atomic.Uint32
    
    // Function to get the reader from an architecture
    func downloadBinary(u *url.URL, mode string) (binCompressed []byte, bin []byte, err error) {
    	transport := getUpdateTransport(30 * time.Second)
    	var reader io.ReadCloser
    	if u.Scheme == "https" || u.Scheme == "http" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  9. src/cmd/asm/doc.go

    # Command Line
    
    Usage:
    
    	go tool asm [flags] file
    
    The specified file must be a Go assembly file.
    The same assembler is used for all target operating systems and architectures.
    The GOOS and GOARCH environment variables set the desired target.
    
    Flags:
    
    	-D name[=value]
    		Predefine symbol name with an optional simple value.
    		Can be repeated to define multiple symbols.
    	-I dir1 -I dir2
    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)
  10. src/archive/tar/common.go

    import (
    	"errors"
    	"fmt"
    	"internal/godebug"
    	"io/fs"
    	"math"
    	"path"
    	"reflect"
    	"strconv"
    	"strings"
    	"time"
    )
    
    // BUG: Use of the Uid and Gid fields in Header could overflow on 32-bit
    // architectures. If a large value is encountered when decoding, the result
    // stored in Header will be the truncated version.
    
    var tarinsecurepath = godebug.New("tarinsecurepath")
    
    var (
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
Back to top