| 1 |
/* |
| 2 |
* FCML - Free Code Manipulation Library. |
| 3 |
* Copyright (C) 2010-2020 Slawomir Wojtasiak |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
*/ |
| 19 |
|
| 20 |
/** @file fcml_gas_dialect.h |
| 21 |
* AT&T dialect implementation. |
| 22 |
* @copyright Copyright (C) 2010-2020 Slawomir Wojtasiak. All rights reserved. |
| 23 |
* This project is released under the GNU Lesser General Public License. |
| 24 |
*/ |
| 25 |
|
| 26 |
#ifndef FCML_ASM_DIALECT_GAS_H_ |
| 27 |
#define FCML_ASM_DIALECT_GAS_H_ |
| 28 |
|
| 29 |
#include "fcml_lib_export.h" |
| 30 |
|
| 31 |
#include "fcml_errors.h" |
| 32 |
#include "fcml_dialect.h" |
| 33 |
|
| 34 |
#ifdef __cplusplus |
| 35 |
extern "C" { |
| 36 |
#endif |
| 37 |
|
| 38 |
/** Disables "SystemV/386 SVR3.2" compatibility for the non-commutative |
| 39 |
* arithmetic floating point operations with two register operands. */ |
| 40 |
#define FCML_GAS_DIALECT_CF_SYSV_SVR32_INCOMPATIBLE 0x00000001 |
| 41 |
|
| 42 |
/** Default combination of configuration flags. */ |
| 43 |
#define FCML_GAS_DIALECT_CF_DEFAULT 0 |
| 44 |
|
| 45 |
/** |
| 46 |
* Initializes AT&T dialect. |
| 47 |
* Prepares new instance of AT&T dialect for given set of configuration flags. |
| 48 |
* Every dialect has to be freed using fcml_fn_dialect_free() function. |
| 49 |
* |
| 50 |
* @param config_flags Configuration flags dedicated to the dialect. |
| 51 |
* @param[out] dialect Prepared dialect instance. |
| 52 |
* @return Error code or FCML_CEH_GEC_NO_ERROR. |
| 53 |
* @see fcml_fn_dialect_free |
| 54 |
*/ |
| 55 |
LIB_EXPORT fcml_ceh_error LIB_CALL fcml_fn_dialect_init_gas( |
| 56 |
fcml_uint32_t config_flags, fcml_st_dialect **dialect); |
| 57 |
|
| 58 |
#ifdef __cplusplus |
| 59 |
} |
| 60 |
#endif |
| 61 |
|
| 62 |
#endif /* FCML_ASM_DIALECT_GAS_H_ */ |