| /* go-main.c -- the main function for a Go program. |
| 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. */ |
| #ifdef HAVE_FPU_CONTROL_H |
| /* The main function for a Go program. This records the command line |
| parameters, calls the real main function, and returns a zero status |
| if the real main function returns. */ |
| /* A copy of _end that a shared library can reasonably refer to. */ |
| main (int argc, char **argv) |
| runtime_isarchive = false; |
| runtime_isstarted = true; |
| __go_end = (uintptr)_end; |
| runtime_args (argc, (byte **) argv); |
| __go_go ((uintptr)(runtime_main), NULL); |
| runtime_mstart (runtime_m ()); |