Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 60 for marino (0.35 sec)

  1. doc/asm.html

    (the actual output may differ from what you see here):
    </p>
    
    <pre>
    $ cat x.go
    package main
    
    func main() {
    	println(3)
    }
    $ GOOS=linux GOARCH=amd64 go tool compile -S x.go        # or: go build -gcflags -S x.go
    "".main STEXT size=74 args=0x0 locals=0x10
    	0x0000 00000 (x.go:3)	TEXT	"".main(SB), $16-0
    	0x0000 00000 (x.go:3)	MOVQ	(TLS), CX
    	0x0009 00009 (x.go:3)	CMPQ	SP, 16(CX)
    	0x000d 00013 (x.go:3)	JLS	67
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 19:15:27 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    received from Go. For example:
    
    	package main
    
    	// typedef int (*intFunc) ();
    	//
    	// int
    	// bridge_int_func(intFunc f)
    	// {
    	//		return f();
    	// }
    	//
    	// int fortytwo()
    	// {
    	//	    return 42;
    	// }
    	import "C"
    	import "fmt"
    
    	func main() {
    		f := C.intFunc(C.fortytwo)
    		fmt.Println(int(C.bridge_int_func(f)))
    		// Output: 42
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  3. doc/go_spec.html

    <p>
    A complete program is created by linking a single, unimported package
    called the <i>main package</i> with all the packages it imports, transitively.
    The main package must
    have package name <code>main</code> and
    declare a function <code>main</code> that takes no
    arguments and returns no value.
    </p>
    
    <pre>
    func main() { … }
    </pre>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  4. api/go1.20.txt

    pkg log/syslog (freebsd-riscv64-cgo), type Writer struct #53466
    pkg math (freebsd-riscv64), const MaxInt = 9223372036854775807 #53466
    pkg math (freebsd-riscv64), const MaxUint = 18446744073709551615 #53466
    pkg math (freebsd-riscv64), const MinInt = -9223372036854775808 #53466
    pkg math (freebsd-riscv64-cgo), const MaxInt = 9223372036854775807 #53466
    pkg math (freebsd-riscv64-cgo), const MaxUint = 18446744073709551615 #53466
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 21:23:32 UTC 2023
    - 602.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testcarchive/testdata/main2.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test installing a signal handler before the Go code starts.
    // This is a lot like ../testcshared/main4.c.
    
    #include <setjmp.h>
    #include <signal.h>
    #include <stdarg.h>
    #include <stddef.h>
    #include <stdio.h>
    #include <stdint.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    #include <unistd.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testcarchive/testdata/main5.c

    #include <stdio.h>
    #include <stdlib.h>
    #include <unistd.h>
    #include <sys/types.h>
    #include <sys/time.h>
    #include <sys/select.h>
    
    #include "libgo2.h"
    
    int *nilp;
    
    int main(int argc, char** argv) {
    	int verbose;
    	int test;
    
    	if (argc < 2) {
    		printf("Missing argument\n");
    		return 1;
    	}
    
    	test = atoi(argv[1]);
    
    	verbose = (argc > 2);
    
    	Noop();
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testcarchive/testdata/main8.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test preemption.
    
    #include <stdlib.h>
    
    #include "libgo8.h"
    
    int main() {
    	GoFunction8();
    
    	// That should have exited the program.
    	abort();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 306 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/swig/testdata/stdio/main.go

    // This file is here just to cause problems.
    // main.swig turns into a file also named main.go.
    // Make sure cmd/go keeps them separate
    // when both are passed to cgo.
    
    package main
    
    //int F(void) { return 1; }
    import "C"
    import (
    	"fmt"
    	"os"
    )
    
    func F() int { return int(C.F()) }
    
    func main() {
    	if x := int(C.F()); x != 1 {
    		fatal("x = %d, want 1", x)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:07 UTC 2023
    - 975 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testplugin/testdata/checkdwarf/main.go

    // Usage:
    //
    //  checkdwarf <exe> <suffix>
    //
    // Opens <exe>, which must be an executable or a library and checks that
    // there is an entry in .debug_info whose name ends in <suffix>
    
    package main
    
    import (
    	"debug/dwarf"
    	"debug/elf"
    	"debug/macho"
    	"debug/pe"
    	"fmt"
    	"os"
    	"strings"
    )
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "checkdwarf executable-or-library DIE-suffix\n")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testplugin/testdata/issue19418/main.go

    // Copyright 2017 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 main
    
    import (
    	"fmt"
    	"os"
    	"plugin"
    )
    
    func main() {
    	p, err := plugin.Open("plugin.so")
    	if err != nil {
    		panic(err)
    	}
    
    	val, err := p.Lookup("Val")
    	if err != nil {
    		panic(err)
    	}
    	got := *val.(*string)
    	const want = "linkstr"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 511 bytes
    - Viewed (0)
Back to top