| // Copyright 2009 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. |
| char* thestring = "amd64"; |
| LinkArch* thelinkarch = &linkamd64; |
| if(strcmp(getgoarch(), "amd64p32") == 0) |
| thelinkarch = &linkamd64p32; |
| vlong MAXWIDTH = 1LL<<50; |
| * go declares several platform-specific type aliases: |
| * int, uint, float, and uintptr |
| {"uint", TUINT, TUINT64}, |
| {"uintptr", TUINTPTR, TUINT64}, |
| if(strcmp(getgoarch(), "amd64p32") == 0) { |
| typedefs[0].sameas = TINT32; |
| typedefs[1].sameas = TUINT32; |
| typedefs[2].sameas = TUINT32; |
| zprog.from.type = D_NONE; |
| zprog.from.index = D_NONE; |